<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/11571" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-06-29T00:23:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/11571</id>

		<entry>
		<author><name><![CDATA[ayie]]></name></author>
		<updated>2006-06-29T00:23:00-04:00</updated>

		<published>2006-06-29T00:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64418#p64418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64418#p64418"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64418#p64418"><![CDATA[
dwickie : <br>what about if i have some file like etc.db etc1.db etc2.db and when user use command fro example !db 1234 ... then the bot will search all the db file and return to user like this User 1234|data|from|db|file.<br>can it possible in tcl file ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2733">ayie</a> — Thu Jun 29, 2006 12:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2006-04-03T04:11:17-04:00</updated>

		<published>2006-04-03T04:11:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61613#p61613</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61613#p61613"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61613#p61613"><![CDATA[
<blockquote class="uncited"><div>Short question;<br>How do I add a "No info found" to channel if nothing is found?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"></div></blockquote>simple edit:<br><div class="codebox"><p>Code: </p><pre><code>set query [mysqlsel $mysql(conn) "SELECT * FROM `releases` WHERE `rls` LIKE '%$arg%' LIMIT 10" -list]if {$query==""} { putserv "PRIVMSG $chan :Nothing found" ; return }foreach result $query {  set time [lindex $restul 1]  set rls [lindex $result 2]  set sect [lindex $result 3]  putserv "PRIVMSG $chan :$rls ($sec) got updated [duration [expr [unixtime]-$time]] ago"} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Mon Apr 03, 2006 4:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danko]]></name></author>
		<updated>2006-03-28T19:25:47-04:00</updated>

		<published>2006-03-28T19:25:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61487#p61487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61487#p61487"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61487#p61487"><![CDATA[
Short question;<br>How do I add a "No info found" to channel if nothing is found?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7471">Danko</a> — Tue Mar 28, 2006 7:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2006-03-27T08:03:39-04:00</updated>

		<published>2006-03-27T08:03:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61423#p61423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61423#p61423"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61423#p61423"><![CDATA[
<blockquote class="uncited"><div>One more thing, is it possible to change the standard output "days, hours, minutes, etc" to d, h, m, s, w, mn, etc? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote><div class="codebox"><p>Code: </p><pre><code>string map {" years" y " year" y " weeks" w " week" w " days" d " day" d " hours" h " hour" h " minutes" m " minute" m " seconds" s " second" s} $time</code></pre></div>will convert $time (for example <em class="text-italics">36 years 13 weeks 3 days 12 hours 3 minutes 13 seconds</em>) to <em class="text-italics">36y 13w 3d 12h 2m 9s</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Mon Mar 27, 2006 8:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danko]]></name></author>
		<updated>2006-03-27T06:45:50-04:00</updated>

		<published>2006-03-27T06:45:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61420#p61420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61420#p61420"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61420#p61420"><![CDATA[
One more thing, is it possible to change the standard output "days, hours, minutes, etc" to d, h, m, s, w, mn, etc? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7471">Danko</a> — Mon Mar 27, 2006 6:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danko]]></name></author>
		<updated>2006-03-27T06:35:18-04:00</updated>

		<published>2006-03-27T06:35:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61419#p61419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61419#p61419"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61419#p61419"><![CDATA[
Yes thanks a million, dwickie. Just what I needed. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>(except for the one typo in restul/result, heh)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7471">Danko</a> — Mon Mar 27, 2006 6:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2006-03-27T05:22:21-04:00</updated>

		<published>2006-03-27T05:22:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61418#p61418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61418#p61418"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61418#p61418"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach result [mysqlsel $mysql(conn) "SELECT * FROM `releases` WHERE `rls` LIKE '%$arg%' LIMIT 10" -list] {  set time [lindex $restul 1]  set rls [lindex $result 2]  set sect [lindex $result 3]  putserv "PRIVMSG $chan :$rls ($sec) got updated [duration [expr [unixtime]-$time]] ago"}</code></pre></div>something like that? $arg is search string...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Mon Mar 27, 2006 5:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danko]]></name></author>
		<updated>2006-03-26T16:41:22-04:00</updated>

		<published>2006-03-26T16:41:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61413#p61413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61413#p61413"/>
		<title type="html"><![CDATA[Searching from MySQL db and posting to chan?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61413#p61413"><![CDATA[
I'm using eggdrop with mysqltcl, i need a small code to search a mysql db and posting result to chan.<br><br>Mysql db is set up as;<br>id time info secondayinfo<br>example:<br>37 1143405316 Soundblaster-Creative Soundcard<br><br>So, how do search the info field (Soundblaster-Creative), and posting the info to channel as "Soundblaster-Creative (Soundcard) got updated xDxMxS (monts/days/hrs/etc) ago"..?<br><br>Its probably easy as heck, but i've tried for hours now and still havent been able to figure it out.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7471">Danko</a> — Sun Mar 26, 2006 4:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
