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

	<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>2011-07-26T12:57:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-07-26T12:57:27-04:00</updated>

		<published>2011-07-26T12:57:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97285#p97285</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97285#p97285"/>
		<title type="html"><![CDATA[need to add a timer into this code..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97285#p97285"><![CDATA[
The single escape is most likely intentional to create the "Ctrl+A" character used for CTCP commands, in this case the Action (or /me) command. I don't see any cause for changing that piece of the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 26, 2011 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2011-07-21T07:13:21-04:00</updated>

		<published>2011-07-21T07:13:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97260#p97260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97260#p97260"/>
		<title type="html"><![CDATA[need to add a timer into this code..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97260#p97260"><![CDATA[
The code you posted doesn't include the output statements, so it is difficult to reply with specifics. However, I can offer an example of how you could output timed statements.<br><br>Before I do, I am doubtful about your attempt to assign the output method to the variable 'way'.<br><div class="codebox"><p>Code: </p><pre><code>set way "PRIVMSG $chan :\001ACTION [lindex $arg 1]"</code></pre></div>Evaluation of the above code (as the text is assigned to the variable), will cause substitution of the backslash. Essentially it will be lost. To retain a backslash you will need to double it as follows :-<br><div class="codebox"><p>Code: </p><pre><code>set way "PRIVMSG $chan :\\001ACTION [lindex $arg 1]"</code></pre></div>As an example of timed output, say if the text lines are in the form of a list 'textlist', you could use something akin to the following :-<br><div class="codebox"><p>Code: </p><pre><code>set count 1foreach line $textlist {    timer $count [list putserv "PRIVMSG $chan :$line"]    incr count 2}</code></pre></div>The first output occurs after 1 minute.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Thu Jul 21, 2011 7:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2011-07-14T05:28:59-04:00</updated>

		<published>2011-07-14T05:28:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97197#p97197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97197#p97197"/>
		<title type="html"><![CDATA[need to add a timer into this code..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97197#p97197"><![CDATA[
hi<br><br>i have a code .this code post trigger in channel with a trigger.reads subject in a .txt file which i've edited. but i want that bot post trigger line by line with timing .<br><br>i type !trigger bot will begin to post line-1 and two minutes later bot'll post line-2 -2 minutes later post line-3 ...<br><br>so how i can add timing into this code ? thnx.<br><div class="codebox"><p>Code: </p><pre><code>if { [llength $arg] &lt; 2 } {if { [isop $nick $chan] || [ishalfop $nick $chan] ||[isvoice $nick $chan] } {set way "PRIVMSG $chan :\001ACTION"set notice 0} else {set way "NOTICE $nick :$nick:"set notice 1}} else {if { [onchan [lindex $arg 1] $chan] &amp;&amp; ( [isop $nick $chan] || [ishalfop $nick $chan] || [isvoice $nick $chan] ) } {if { [lindex $arg 2]=="c" } {set way "PRIVMSG $chan :\001ACTION [lindex $arg 1]"set notice 3} elseif { [lindex $arg 2]=="p" } {set way "PRIVMSG [lindex $arg 1] :"set notice 2} else {set way "NOTICE [lindex $arg 1] :$nick:"set notice 1}} else {return 0}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Thu Jul 14, 2011 5:28 am</p><hr />
]]></content>
	</entry>
	</feed>
