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

	<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-04-22T17:07:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TeRRaNoVA]]></name></author>
		<updated>2006-04-22T17:07:38-04:00</updated>

		<published>2006-04-22T17:07:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62226#p62226</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62226#p62226"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62226#p62226"><![CDATA[
thx Working 110% now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>thx for your help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6237">TeRRaNoVA</a> — Sat Apr 22, 2006 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-21T07:47:41-04:00</updated>

		<published>2006-04-21T07:47:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62169#p62169</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62169#p62169"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62169#p62169"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>You load it the same way you load any another Tcl script.</div></blockquote>load this as cmd.tcl bud when i type !cmd nothing happens <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> or `m wrong..<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !cmd cmd proc cmd {nick uhost hand chan arg} {  # !cmd triggers this procedure. }</code></pre></div></div></blockquote>I gave you an example on how you can make the bot trigger a procedure on pub command.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !cmd cmdproc cmd {nick uhost hand chan arg} { set f [open "|tail -f /home/user/eggdrop/logs/bot.log"] fconfigure $f -blocking 0 -buffering line fileevent $f readable [list foo $f $chan]}proc foo {f c} {puthelp "privmsg $c :[gets $f]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Apr 21, 2006 7:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-21T00:20:26-04:00</updated>

		<published>2006-04-21T00:20:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62156#p62156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62156#p62156"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62156#p62156"><![CDATA[
ah, I missed the fileevent calling procedure foo <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><br>must have been a long day<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri Apr 21, 2006 12:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-21T00:03:06-04:00</updated>

		<published>2006-04-21T00:03:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62152#p62152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62152#p62152"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62152#p62152"><![CDATA[
<blockquote class="uncited"><div>How in the world can that procedure code work???</div></blockquote>bizarre quantum forces make it do so <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Apr 21, 2006 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TeRRaNoVA]]></name></author>
		<updated>2006-04-20T15:10:28-04:00</updated>

		<published>2006-04-20T15:10:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62142#p62142</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62142#p62142"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62142#p62142"><![CDATA[
<blockquote class="uncited"><div>You load it the same way you load any another Tcl script.</div></blockquote>load this as cmd.tcl bud when i type !cmd nothing happens <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> or `m wrong..<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !cmd cmd proc cmd {nick uhost hand chan arg} {  # !cmd triggers this procedure. }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6237">TeRRaNoVA</a> — Thu Apr 20, 2006 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-19T18:12:15-04:00</updated>

		<published>2006-04-19T18:12:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62120#p62120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62120#p62120"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62120#p62120"><![CDATA[
You load it the same way you load any another Tcl script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Apr 19, 2006 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TeRRaNoVA]]></name></author>
		<updated>2006-04-19T06:51:18-04:00</updated>

		<published>2006-04-19T06:51:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62093#p62093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62093#p62093"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62093#p62093"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pub - !cmd cmdproc cmd {nick uhost hand chan arg} { # !cmd triggers this procedure.}</code></pre></div></div></blockquote><br>does that trigger directly from /home/user/eggdrop/logs/bot.log<br> or were to put into a new .tcl ... ?<br><br><br>sorry for my bad english<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6237">TeRRaNoVA</a> — Wed Apr 19, 2006 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-18T20:13:08-04:00</updated>

		<published>2006-04-18T20:13:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62083#p62083</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62083#p62083"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62083#p62083"><![CDATA[
<blockquote class="uncited"><div>thx<br><br>founded this and it works bud....<br><div class="codebox"><p>Code: </p><pre><code>set f [open "|tail -f /home/user/eggdrop/logs/bot.log"] fconfigure $f -blocking 0 -buffering line fileevent $f readable [list foo $f] proc foo {f} {puthelp "privmsg #mychannel :[gets $f]"}</code></pre></div>bud now i want a !cmd for latest 5 lines from that bot.log<br>can you help me with is have seach bud no good result..:/</div></blockquote>How in the world can that procedure code work???<br>Far easier:<div class="codebox"><p>Code: </p><pre><code>proc foo {n u h c t} {   set file [exec tail -n5 /path/to/log]   foreach line in $file {      putserv "PRIVMSG $c : $line"   }}</code></pre></div>might not work for windrop, but you used tail in your example so it should work for you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Tue Apr 18, 2006 8:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-18T20:04:33-04:00</updated>

		<published>2006-04-18T20:04:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62082#p62082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62082#p62082"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62082#p62082"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !cmd cmdproc cmd {nick uhost hand chan arg} { # !cmd triggers this procedure.}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 18, 2006 8:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TeRRaNoVA]]></name></author>
		<updated>2006-04-18T19:06:53-04:00</updated>

		<published>2006-04-18T19:06:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62080#p62080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62080#p62080"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62080#p62080"><![CDATA[
thx<br><br>founded this and it works bud....<br><div class="codebox"><p>Code: </p><pre><code>set f [open "|tail -f /home/user/eggdrop/logs/bot.log"] fconfigure $f -blocking 0 -buffering line fileevent $f readable [list foo $f] proc foo {f} {puthelp "privmsg #mychannel :[gets $f]"}</code></pre></div>bud now i want a !cmd for latest 5 lines from that bot.log<br>can you help me with is have seach bud no good result..:/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6237">TeRRaNoVA</a> — Tue Apr 18, 2006 7:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-18T18:26:16-04:00</updated>

		<published>2006-04-18T18:26:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62079#p62079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62079#p62079"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62079#p62079"><![CDATA[
A <a href="http://forum.egghelp.org/search.php" class="postlink">forum search</a> will return exactly what you've asked for.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 18, 2006 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TeRRaNoVA]]></name></author>
		<updated>2006-04-18T18:06:31-04:00</updated>

		<published>2006-04-18T18:06:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62078#p62078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62078#p62078"/>
		<title type="html"><![CDATA[request msg script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62078#p62078"><![CDATA[
hello,<br><br>i want my bot to read the latest 1 or 5 lines from bot.log file en msg them to #channel ... <br><br><br>thx!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6237">TeRRaNoVA</a> — Tue Apr 18, 2006 6:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
