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

	<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>2003-10-02T13:53:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-02T13:53:25-04:00</updated>

		<published>2003-10-02T13:53:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27842#p27842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27842#p27842"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27842#p27842"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>One possibility is that you entered the code wrong initially, changed it, rehashed (instead of restarting), thus leaving the original incorrect bind in tact and still usable...<br><br>Another possibility is that you loaded the bot from scratch and when doing so, the bot has not yet connected to irc, and botnick may be "" (empty), thus meaning that the bind would just be "@".... If this is the problem, then a better bind would be <strong class="text-strong">bind pub - @$nick &lt;proc&gt;</strong> instead.</div></blockquote>all bots still reply to just @  after I did a rehash  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> .. I'll try the alternative codes later today.  I appreciate all the input.</div></blockquote>That's exactly what I was saying... you should NOT use .rehash...<br>you should have used <strong class="text-strong">.restart</strong>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Oct 02, 2003 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-10-02T02:26:14-04:00</updated>

		<published>2003-10-02T02:26:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27822#p27822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27822#p27822"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27822#p27822"><![CDATA[
<blockquote class="uncited"><div>One possibility is that you entered the code wrong initially, changed it, rehashed (instead of restarting), thus leaving the original incorrect bind in tact and still usable...<br><br>Another possibility is that you loaded the bot from scratch and when doing so, the bot has not yet connected to irc, and botnick may be "" (empty), thus meaning that the bind would just be "@".... If this is the problem, then a better bind would be <strong class="text-strong">bind pub - @$nick &lt;proc&gt;</strong> instead.</div></blockquote>all bots still reply to just @  after I did a rehash  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> .. I'll try the alternative codes later today.  I appreciate all the input.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Thu Oct 02, 2003 2:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-01T19:05:54-04:00</updated>

		<published>2003-10-01T19:05:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27817#p27817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27817#p27817"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27817#p27817"><![CDATA[
Or, instead of doing all that work, have a bind to match all public text against the desired trigger (@), and check for the appropriate botnick from within that proc itself, if you want/need to handle all those cases.<br><br>ie. <div class="codebox"><p>Code: </p><pre><code>bind pubm - "#% @*" mybindproc mybind {nick uhost hand chan text} {  global botnick  set who [string tolower [lindex [split $text] 0]]  if {@[string tolower $botnick] != $who} { return }  puthelp "NOTICE $nick :I am not serving right now"}</code></pre></div>(Heh, that bind looks like censored cursing)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Oct 01, 2003 7:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dun_dacil]]></name></author>
		<updated>2003-10-01T17:29:26-04:00</updated>

		<published>2003-10-01T17:29:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27814#p27814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27814#p27814"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27814#p27814"><![CDATA[
Another alternative to the  @$nick binding suggested by strikelight could be to bind the pub bind to an evnt init-server: something like:<br><br>bind evnt - init-server init_the_proc <br><br>proc init_the_proc {type} {<br>    global botnick<br>    bind pub - @$botnick ....<br>}<br><br>The slight advantage of this is that the bind is in operation only after the bot is on the IRC server, and $botnick holds the actual bot nickname (which, incidentally, may not coincide with $nick). I'd suggest also to check for bot's nick changes, and change the bind as appropriate.<br><br>dun<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1864">dun_dacil</a> — Wed Oct 01, 2003 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-10-01T16:25:19-04:00</updated>

		<published>2003-10-01T16:25:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27807#p27807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27807#p27807"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27807#p27807"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Wed Oct 01, 2003 4:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-01T11:43:41-04:00</updated>

		<published>2003-10-01T11:43:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27797#p27797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27797#p27797"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27797#p27797"><![CDATA[
He said $nick not $bot silly <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Oct 01, 2003 11:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-10-01T11:31:36-04:00</updated>

		<published>2003-10-01T11:31:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27796#p27796</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27796#p27796"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27796#p27796"><![CDATA[
Strikelight, I changed my code to:<br><br>bind pub - <strong class="text-strong">@$bot </strong>reply:share    <br><br>proc reply:share {nick uhost hand chan arg} {<br> puthelp "NOTICE $nick :I'm a robot, NOT sharing files!"<br>}<br><br>and got this error:<br><br>can't read "bot": no such variable<br>while executing<br>"bind pub - @$bot reply:share "<br>(file "scripts/notrigger.tcl" line 1)<br>invoked from within<br>"source scripts/notrigger.tcl"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Wed Oct 01, 2003 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-30T18:35:43-04:00</updated>

		<published>2003-09-30T18:35:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27778#p27778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27778#p27778"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27778#p27778"><![CDATA[
One possibility is that you entered the code wrong initially, changed it, rehashed (instead of restarting), thus leaving the original incorrect bind in tact and still usable...<br><br>Another possibility is that you loaded the bot from scratch and when doing so, the bot has not yet connected to irc, and botnick may be "" (empty), thus meaning that the bind would just be "@".... If this is the problem, then a better bind would be <strong class="text-strong">bind pub - @$nick &lt;proc&gt;</strong> instead.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Sep 30, 2003 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-09-30T17:36:09-04:00</updated>

		<published>2003-09-30T17:36:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27775#p27775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27775#p27775"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27775#p27775"><![CDATA[
my code seems fine:<br><br>bind pub - @$botnick reply:share<br><br>proc reply:share {nick uhost hand chan arg} {<br> puthelp "NOTICE $nick :I'm a robot, NOT sharing files!"<br>}<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Tue Sep 30, 2003 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-30T15:46:57-04:00</updated>

		<published>2003-09-30T15:46:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27769#p27769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27769#p27769"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27769#p27769"><![CDATA[
are u sure you have the pub bind @$botnick ?<br>it won't reply to @ unless the bind is <strong class="text-strong">bind pub - @ reply:share</strong><br><br>so make sure it's <strong class="text-strong">bind pub - @$botnick reply:share</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Sep 30, 2003 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-09-30T14:46:49-04:00</updated>

		<published>2003-09-30T14:46:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27763#p27763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27763#p27763"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27763#p27763"><![CDATA[
how many bots did you load your script on?  I loaded on all 8 bots on my botnet and they reply when I type  @<br><br>Sir, could you tweak the code?  Thanks so much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Tue Sep 30, 2003 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-09-25T09:20:50-04:00</updated>

		<published>2003-09-25T09:20:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27556#p27556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27556#p27556"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27556#p27556"><![CDATA[
<blockquote class="uncited"><div>I only typed @ and all of the bots with the script loaded sent me a notice.  If i type @botnick only that bot will send me a notice so there must be something up with the code.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>Works fine for me. Only replies to @&lt;botnick&gt;... No notices when I just type "@"...<br><br>Thanks Sir_Fz....<p>Statistics: Posted by Guest — Thu Sep 25, 2003 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-09-21T15:18:26-04:00</updated>

		<published>2003-09-21T15:18:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27401#p27401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27401#p27401"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27401#p27401"><![CDATA[
I only typed @ and all of the bots with the script loaded sent me a notice.  If i type @botnick only that bot will send me a notice so there must be something up with the code.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Sun Sep 21, 2003 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-21T14:42:28-04:00</updated>

		<published>2003-09-21T14:42:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27399#p27399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27399#p27399"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27399#p27399"><![CDATA[
well it shouldn't reply on @ it should reply to @&lt;botnick&gt; , as for the pub bind, read tcl-commands.doc in the /doc  dir of your eggdrop's dir.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Sep 21, 2003 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bytez]]></name></author>
		<updated>2003-09-21T14:08:23-04:00</updated>

		<published>2003-09-21T14:08:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27396#p27396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27396#p27396"/>
		<title type="html"><![CDATA[script to send notice that @nickname trigger don't work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27396#p27396"><![CDATA[
<blockquote class="uncited"><div>read tcl-commands.doc for pub binds.<br><br>this is a basic script:<div class="codebox"><p>Code: </p><pre><code>bind pub - @$botnick reply:shareproc reply:share {nick uhost hand chan arg} { puthelp "NOTICE $nick :I'm not sharing any files."}</code></pre></div></div></blockquote>what's pub binds?  Also, when I typed @ by itself on the channel, ALL my bots with the script loaded sent me a notice with a mesage.  How can I fix this and also add some flood settings?  I really appreciate it, maybe it should be in the TCL archives... I'm sure many people would use this esp. on fserv channels.  Thanks! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3647">Bytez</a> — Sun Sep 21, 2003 2:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
