<?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/13044" />

	<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>2007-01-30T13:43:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ace-T]]></name></author>
		<updated>2007-01-30T13:43:24-04:00</updated>

		<published>2007-01-30T13:43:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70084#p70084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70084#p70084"/>
		<title type="html"><![CDATA[script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70084#p70084"><![CDATA[
managed to do the first one but tried second but cant seem to do it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>spend hours trying but it still adds the time value for the current time<br><br><br>edit: this is what i thought ov<br><div class="codebox"><p>Code: </p><pre><code>    set cat [lindex [split $text] 1]    set game [lindex [split $text] 2]    set time [lindex [split $text] 3]set sql "INSERT INTO stats VALUES(null, '[mysqlescape $game]', '[mysqlescape $cat]', '[mysqlescape $time]')"</code></pre></div>and the add stats function is<br><br>!add Puzzle Tetris date then time<br><br>eg !add Puzzle Tetris 2007-01-12 19:31:12<br><br>i need it to add it by text and not a date and time function<br><br><br>edit: half way there... now just the date and time is adding it in as  2007-01-12 00:00:00 .. the date i added was correct but not the time but the date and time need to be in the same filed<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8148">Ace-T</a> — Tue Jan 30, 2007 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ace-T]]></name></author>
		<updated>2007-01-30T07:16:37-04:00</updated>

		<published>2007-01-30T07:16:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70071#p70071</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70071#p70071"/>
		<title type="html"><![CDATA[script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70071#p70071"><![CDATA[
2 last questions<br><br>1. how can i add the data into the announce from mysql... the dates in mysql but not  pulling the data to chanel<br><br>and<br><br>2. <br><br>if the bot doesnt update the users score and a channel admin need to update it maually then how could we do it so it will add the day/time of our choose<br><br>currently we have<br><div class="codebox"><p>Code: </p><pre><code>set sql "INSERT INTO stats VALUES(null, '[mysqlescape $score]', '[mysqlescape $game]', now())"</code></pre></div>but that puts the now date into mysql but we need to add for a few days before so we are having to go into mysql and edit manually<br><br>so we would need to add the date like so  01/01/2007 11:36:00<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8148">Ace-T</a> — Tue Jan 30, 2007 7:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-29T22:19:17-04:00</updated>

		<published>2007-01-29T22:19:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70068#p70068</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70068#p70068"/>
		<title type="html"><![CDATA[script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70068#p70068"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> if {[lsearch -exact $ace_channels [string tolower $chan]] &lt; 0} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jan 29, 2007 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ace-T]]></name></author>
		<updated>2007-01-29T22:03:04-04:00</updated>

		<published>2007-01-29T22:03:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70067#p70067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70067#p70067"/>
		<title type="html"><![CDATA[script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70067#p70067"><![CDATA[
Tcl error [search_info]: bad option "#ace": must be -all, -ascii, -decreasing, -dictionary, -exact, -glob, -increasing, -inline, -integer, -not, -real, -regexp, -sorted, or -start<br><br> just get that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br><br>you missed a ]<br><br>so i added it like so<br><br> if {[lsearch -exact $ace_channels [string tolower $chan] &lt; 0]} {<br><br>would this cause it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8148">Ace-T</a> — Mon Jan 29, 2007 10:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-01-29T15:18:22-04:00</updated>

		<published>2007-01-29T15:18:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70060#p70060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70060#p70060"/>
		<title type="html"><![CDATA[script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70060#p70060"><![CDATA[
I'd probably go for something like this:<div class="codebox"><p>Code: </p><pre><code>set ace_channels [list #ace #acestats]proc search_info {nick host hand chan text} { global db_handle maxresults ace_channels if {[lsearch -exact $ace_channels [string tolower $chan] &lt; 0} {  return 1 } #Rest of code continues here .....</code></pre></div>Any channel your script should be reporting on needs to be added to the ace_channels list. Keep in mind that you will have to enter any channels in this list in lowercase only, as lsearch is case-sensitive.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jan 29, 2007 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ace-T]]></name></author>
		<updated>2007-01-29T08:20:30-04:00</updated>

		<published>2007-01-29T08:20:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70050#p70050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70050#p70050"/>
		<title type="html"><![CDATA[script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70050#p70050"><![CDATA[
hey i need to get my script to report to a command but only to two ov the 3 chanels i own.. but it reports to them all and i dont want this how can i make this go to my two channels..<br><br>#Ace and #AceStats and not #AceBots<br><br>heres the command i have<br><div class="codebox"><p>Code: </p><pre><code>proc search_info { nick host handle channel text} {    global db_handle  global maxresultsif {$text == ""} {      putquick "PRIVMSG $channel : Use: !stats &lt;stats&gt; to search"return 0}ON THIS LINE IS WHERE THE COMMAND SEARCHS MYSQL            putquick "PRIVMSG $channel : Stats :: $stats"  } else {            putquick "PRIVMSG $channel : No matches found in Database"    }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8148">Ace-T</a> — Mon Jan 29, 2007 8:20 am</p><hr />
]]></content>
	</entry>
	</feed>
