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

	<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-07-18T22:32:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Zorb]]></name></author>
		<updated>2007-07-18T22:32:25-04:00</updated>

		<published>2007-07-18T22:32:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74558#p74558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74558#p74558"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74558#p74558"><![CDATA[
Ah never mind I figured it out before you posted. Thank anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8299">Zorb</a> — Wed Jul 18, 2007 10:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T22:15:22-04:00</updated>

		<published>2007-07-18T22:15:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74555#p74555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74555#p74555"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74555#p74555"><![CDATA[
<blockquote class="uncited"><div>Uhh. Nobody gets it...<br><br>I have 5 bots in a channel and I want ONLY ONE to respond to anything that I do, public or notice. Each bot has the same commands. And all respond to the same command. They all run off the same script if that helps. <br><br>I was thinking something like this at the start of a proc, to make the main bot reply only. <br><div class="codebox"><p>Code: </p><pre><code>if {$chan == #MainChannel &amp;&amp; $botnick != MainBot} { return 0 } REST OF SCRIPT HERE</code></pre></div>Meaning if the chan equals MainChannel and the bots nickname is not equal to MainBot halt the script. Otherwhise if bots nickname does equal MainBot and channel equals #MainChannel continue with the script.</div></blockquote>If you are so keen in using this code, then use it correctly:<br><div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase "#mainchannel" $chan] &amp;&amp; ![isbotnick "MainBot"]} { return 0 }###OR##if {[string equal -nocase "#mainchannel" $chan] &amp;&amp; ![string equal -nocase $::botnick "mainbot"]} { return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 10:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zorb]]></name></author>
		<updated>2007-07-18T21:15:12-04:00</updated>

		<published>2007-07-18T21:15:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74553#p74553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74553#p74553"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74553#p74553"><![CDATA[
Uhh. Nobody gets it...<br><br>I have 5 bots in a channel and I want ONLY ONE to respond to anything that I do, public or notice. Each bot has the same commands. And all respond to the same command. They all run off the same script if that helps. <br><br>I was thinking something like this at the start of a proc, to make the main bot reply only. <br><div class="codebox"><p>Code: </p><pre><code>if {$chan == #MainChannel &amp;&amp; $botnick != MainBot} { return 0 } REST OF SCRIPT HERE</code></pre></div>Meaning if the chan equals MainChannel and the bots nickname is not equal to MainBot halt the script. Otherwhise if bots nickname does equal MainBot and channel equals #MainChannel continue with the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8299">Zorb</a> — Wed Jul 18, 2007 9:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T21:02:57-04:00</updated>

		<published>2007-07-18T21:02:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74552#p74552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74552#p74552"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74552#p74552"><![CDATA[
Well then thats an easy case now isn't it? I suppose your bots might not be linked so, in that case, you add this script in the bot which you want ONLY to respond.<br><br>I think that is clear enough and common sense, because the ones without it, obviously won't respond to the public trigger. For this:<br><blockquote class="uncited"><div>I mean I have say 5 bots on one channel. If I type !omg I only want one to respond ONLY in THAT channel. </div></blockquote>Use this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!omg" pub:procproc pub:proc {nick uhost hand chan text} { putserv "PRIVMSG $chan :your_[censored]_here"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 9:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zorb]]></name></author>
		<updated>2007-07-18T20:57:46-04:00</updated>

		<published>2007-07-18T20:57:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74550#p74550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74550#p74550"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74550#p74550"><![CDATA[
Not sure I made myself clear enough..<br><br>I mean I have say 5 bots on one channel. If I type !omg I only want one to respond ONLY in THAT channel. <br><br>Any other channels I won't have more than one bot in them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8299">Zorb</a> — Wed Jul 18, 2007 8:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T20:23:17-04:00</updated>

		<published>2007-07-18T20:23:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74545#p74545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74545#p74545"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74545#p74545"><![CDATA[
You can use something like:<br><div class="codebox"><p>Code: </p><pre><code>#Set your trigger commands hereset pubtrigger(1) "command1"set pubtrigger(2) "command2"set pubtrigger(3) "command3"bind pub - "!$botnick" pub:procproc pub:proc {nick uhost hand chan text} { if {[string equal -nocase $::pubtrigger(1) [lindex [split $text] 0]]} { #do whatever you want here for command1 } elseif {[string equal -nocase $::pubtrigger(2) [lindex [split $text] 0]]} { #do whatever you want here for command2 } elseif {[string equal -nocase $::pubtrigger(3) [lindex [split $text] 0]]} { #do whatever you want here for command3 }} </code></pre></div>This code can be put into all bots and it will activate when you type:<br><blockquote class="uncited"><div>!&lt;botnick&gt; command1<br>!&lt;botnick&gt; command2<br>!&lt;botnick&gt; command3</div></blockquote>The <em class="text-italics">command</em> can be anything say like "msg", "act", "notc", "op", "deop", "cycle" and etc for each and every one of your different bots, with different botnicks. Well this is the simplest way to do it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zorb]]></name></author>
		<updated>2007-07-18T19:54:19-04:00</updated>

		<published>2007-07-18T19:54:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74541#p74541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74541#p74541"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74541#p74541"><![CDATA[
Well, this is what I'm trying to do.<br><br>I was thinking. <br><div class="codebox"><p>Code: </p><pre><code>if {$chan == #thechan &amp;&amp; $botnick != TheMainBot} { return 0 } REST OF SCRIPT HERE</code></pre></div>Would that work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8299">Zorb</a> — Wed Jul 18, 2007 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-07-18T19:51:21-04:00</updated>

		<published>2007-07-18T19:51:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74538#p74538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74538#p74538"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74538#p74538"><![CDATA[
The particular script doesn't have a setting to enable/disable in particular channels?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jul 18, 2007 7:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zorb]]></name></author>
		<updated>2007-07-18T19:42:03-04:00</updated>

		<published>2007-07-18T19:42:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74534#p74534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74534#p74534"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74534#p74534"><![CDATA[
To be honest that is just silly. The bots are in more than one channel.. Hand I  want one of them for only one bot to respond.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8299">Zorb</a> — Wed Jul 18, 2007 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-07-18T14:01:22-04:00</updated>

		<published>2007-07-18T14:01:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74521#p74521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74521#p74521"/>
		<title type="html"><![CDATA[Re: 20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74521#p74521"><![CDATA[
<blockquote class="uncited"><div>I have X amount of bots in a certain channel, when someone types a command I want only one to respond.<br><br>I've tried a few ways of going about this, and thought of a few to, I'll try them when I wake up as it's 1:30am as I'm writing.<br><br>Any suggested ways of doing this?</div></blockquote>put public command scripts only on one bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Wed Jul 18, 2007 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zorb]]></name></author>
		<updated>2007-07-18T11:56:12-04:00</updated>

		<published>2007-07-18T11:56:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74515#p74515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74515#p74515"/>
		<title type="html"><![CDATA[20 bots want 1 to respond]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74515#p74515"><![CDATA[
I have X amount of bots in a certain channel, when someone types a command I want only one to respond.<br><br>I've tried a few ways of going about this, and thought of a few to, I'll try them when I wake up as it's 1:30am as I'm writing.<br><br>Any suggested ways of doing this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8299">Zorb</a> — Wed Jul 18, 2007 11:56 am</p><hr />
]]></content>
	</entry>
	</feed>
