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

	<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-10-01T17:05:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Schubi]]></name></author>
		<updated>2007-10-01T17:05:04-04:00</updated>

		<published>2007-10-01T17:05:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76332#p76332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76332#p76332"/>
		<title type="html"><![CDATA[/msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76332#p76332"><![CDATA[
Thanks for the info!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9289">Schubi</a> — Mon Oct 01, 2007 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-09-23T19:31:59-04:00</updated>

		<published>2007-09-23T19:31:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76174#p76174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76174#p76174"/>
		<title type="html"><![CDATA[/msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76174#p76174"><![CDATA[
Just so you know, the bot does have built-in capability to do the same thing, eg .act or .say  (check the built-in helpfiles via dcc, .help act, .help say)<br><br>One other tip, you can use [string trim] to make sure there's no spaces so you don't need to test for " " <br><br>eg:<br><br>set arg [string trim $arg]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Sep 23, 2007 7:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Schubi]]></name></author>
		<updated>2007-09-23T11:34:14-04:00</updated>

		<published>2007-09-23T11:34:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76160#p76160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76160#p76160"/>
		<title type="html"><![CDATA[/msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76160#p76160"><![CDATA[
After a long, long time:<br><div class="codebox"><p>Code: </p><pre><code>## NELSON 1.0.0set chan "#testa"bind msg - laugh nelson## /msg botnick laugh &lt;idiot&gt;proc nelson {nick uhost handle arg} { global chan botnick  if { $arg == "" || $arg eq " " } {                putserv "PRIVMSG $nick :Usage: /msg $botnick laugh &lt;idiot&gt;"                return 0        }    putserv "PRIVMSG $chan :$arg: Haa Haa!"}putlog "Loaded NELSON 1.0.0"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9289">Schubi</a> — Sun Sep 23, 2007 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Schubi]]></name></author>
		<updated>2007-09-09T14:56:51-04:00</updated>

		<published>2007-09-09T14:56:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75824#p75824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75824#p75824"/>
		<title type="html"><![CDATA[/msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75824#p75824"><![CDATA[
Thank you - but still not working. :-/  I guess it has something to do with $nick (but now idea how the script gets the "/msg bot <strong class="text-strong">&lt;nick&gt;</strong>" value)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9289">Schubi</a> — Sun Sep 09, 2007 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-09-07T09:15:16-04:00</updated>

		<published>2007-09-07T09:15:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75779#p75779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75779#p75779"/>
		<title type="html"><![CDATA[/msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75779#p75779"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind msg - laugh msg:laughset chan "#test"proc msg:laugh {nick host hand text} {   putserv "PRIVMSG $chan :$nick: Ha Ha!"</code></pre></div>Still something missing...?!</div></blockquote>yup. anytime you use a variable in a procedure, you need to declare it within the proc.<div class="codebox"><p>Code: </p><pre><code>bind msg - laugh msg:laughset laughchan "#test"proc msg:laugh {nick host hand text} {  global laughchan   putserv "PRIVMSG $laughchan :$nick Ha Ha!"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Fri Sep 07, 2007 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Schubi]]></name></author>
		<updated>2007-09-07T07:36:02-04:00</updated>

		<published>2007-09-07T07:36:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75777#p75777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75777#p75777"/>
		<title type="html"><![CDATA[/msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75777#p75777"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msg - laugh msg:laughset chan "#test"proc msg:laugh {nick host hand text} {   putserv "PRIVMSG $chan :$nick: Ha Ha!"</code></pre></div>Still something missing...?!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9289">Schubi</a> — Fri Sep 07, 2007 7:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-09-07T06:24:48-04:00</updated>

		<published>2007-09-07T06:24:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75775#p75775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75775#p75775"/>
		<title type="html"><![CDATA[Re: /msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75775#p75775"><![CDATA[
What channel? There's no channel associated with a message sent directly to the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Sep 07, 2007 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Schubi]]></name></author>
		<updated>2007-09-07T05:23:38-04:00</updated>

		<published>2007-09-07T05:23:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75772#p75772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75772#p75772"/>
		<title type="html"><![CDATA[/msg bot, reply to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75772#p75772"><![CDATA[
Hello,<br><br>I've been trying to write a script that lets the bot send a message to the channel after sending a query to the bot:<br><br>/msg Bot User<br>&lt;Bot&gt; User: Ha Ha!<br><br>I tried to adapt some scripts that I found, but as I'm not familiar with coding it's a bit hard (and I already tried serveral variants of this one):<br><div class="codebox"><p>Code: </p><pre><code># /msg &lt;bot&gt; &lt;nick&gt;bind msg * laugh msg:laughproc msg:laugh {nick host hand text} {   putserv "PRIVMSG $chan :$nick: Ha Ha!"}</code></pre></div># bind msg &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br># procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt;<br># Description: used for /msg commands. The first word of the user's<br># msg is the command, and everything else becomes the text argument.<br><br>Thanks for taking a look,<br><br>     Schubi<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9289">Schubi</a> — Fri Sep 07, 2007 5:23 am</p><hr />
]]></content>
	</entry>
	</feed>
