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

	<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>2009-01-07T19:51:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2009-01-07T19:51:49-04:00</updated>

		<published>2009-01-07T19:51:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86782#p86782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86782#p86782"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86782#p86782"><![CDATA[
Let me explain what i meant about going about it the wrong way.<br><br>Binding to $botnick is very well ok. but it will also error because $botnick is in the global namespace, so you need to call it via $::botnick<br><br>When your botnick changes nickname on irc, lets say from its alt-nick to its main nickname, the binds will still be bound to the alt-nick, which defeats the object of botnick commands.<br><br>Its not hard work to port lol-tools commands into my example, just reply the code inside:<br><div class="codebox"><p>Code: </p><pre><code>"&lt;command&gt;" {             ....         }</code></pre></div>With:<div class="codebox"><p>Code: </p><pre><code>"&lt;command&gt;" {             catch {procname $nick $host $hand $chan $arg}         }</code></pre></div>For exampe, for op:<br><div class="codebox"><p>Code: </p><pre><code>"op" {             catch {pub_lol_op $nick $host $hand $chan $arg}         }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Wed Jan 07, 2009 7:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2009-01-07T15:40:43-04:00</updated>

		<published>2009-01-07T15:40:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86777#p86777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86777#p86777"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86777#p86777"><![CDATA[
bind pubm o|o "$botnick op" pub_lol_op_2<br><br>proc pub_lol_op_2 {nick host hand chan text} {<br>pub_lol_op "$nick $host $hand $chan [lrange [split $text] 2 end]"<br>}<br><br>do this for every lol script bind -.-<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed Jan 07, 2009 3:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2009-01-07T11:04:16-04:00</updated>

		<published>2009-01-07T11:04:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86773#p86773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86773#p86773"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86773#p86773"><![CDATA[
I just need the code to replace this<div class="codebox"><p>Code: </p><pre><code>bind pub o|o .op pub_lol_op </code></pre></div>with the: botnick op.  <br><br>because i use the lol script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Wed Jan 07, 2009 11:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2009-01-07T09:02:48-04:00</updated>

		<published>2009-01-07T09:02:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86768#p86768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86768#p86768"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86768#p86768"><![CDATA[
Thats the wrong way to go about it, use something like this:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm o|o {*} bot:cmdsproc bot:cmds {nick host hand chan text} {    global botnick    if {![string equal -nocase $botnick [lindex [split $text] 0]]} { return }    set cmd [lindex [split $text] 1]    set arg [join [lrange $text 2 end]]    switch -exact -- $cmd {      "op"          set who [lindex [split $arg] 0]          if {![onchan $who $chan]} {            putserv "NOTICE $nick :ERROR: $who is not on $chan."          } elseif {![botisop $chan]} {             putserv "NOTICE $nick :ERROR: I require op to do that!"          } elseif {[isop $who $chan]} {             putserv "NOTICE $nick :ERRRR: $who is already op on $chan."          } else {            putserv "MODE $chan +o $who"            putserv "NOTICE $nick :Done. Op'd $who on $chan."          }       }       "deop"          set who [lindex [split $arg] 0]          if {![onchan $who $chan]} {            putserv "NOTICE $nick :ERROR: $who is not on $chan."          } elseif {![botisop $chan]} {             putserv "NOTICE $nick :ERROR: I require op to do that!"          } elseif {![isop $who $chan]} {             putserv "NOTICE $nick :ERRRR: $who is not op'd on $chan."          } else {            putserv "MODE $chan -o $who"            putserv "NOTICE $nick :Done. Deop'd $who on $chan."          }       }       "default" {            putserv "NOTICE $nick :SYNTAX: $botnick &lt;command&gt; ?arguements?"            putserv "NOTICE $nick :Available commands: op|deop."       }    }}putlog "Loaded botnick commands!"        </code></pre></div>This is untested, just an example to show you how to do it..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Wed Jan 07, 2009 9:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2009-01-07T07:19:31-04:00</updated>

		<published>2009-01-07T07:19:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86761#p86761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86761#p86761"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86761#p86761"><![CDATA[
try without the asterisk then...that was for pubm bind only<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed Jan 07, 2009 7:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2009-01-07T07:08:38-04:00</updated>

		<published>2009-01-07T07:08:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86760#p86760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86760#p86760"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86760#p86760"><![CDATA[
<blockquote class="uncited"><div>I dont know lol script, but your new bind has 2 words instead of one, thats the problem^^</div></blockquote>i just replaces: !op with "$botnick op *" .. and nothing hapens<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Wed Jan 07, 2009 7:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2009-01-07T07:05:00-04:00</updated>

		<published>2009-01-07T07:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86759#p86759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86759#p86759"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86759#p86759"><![CDATA[
I dont know lol script, but your new bind has 2 words instead of one, thats the problem^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed Jan 07, 2009 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2009-01-07T06:18:28-04:00</updated>

		<published>2009-01-07T06:18:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86757#p86757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86757#p86757"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86757#p86757"><![CDATA[
something is wrong ... it doesn't work .<br><br>I've added this command in my lol script  and it dowsnt respond on commands<div class="codebox"><p>Code: </p><pre><code>bind pub o|o .op pub_lol_opbind pub o|o "$botnick op" pub_lol_op</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Wed Jan 07, 2009 6:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2009-01-07T07:03:41-04:00</updated>

		<published>2009-01-06T17:07:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86747#p86747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86747#p86747"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86747#p86747"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm o|o "$botnick op *" pubm:opproc pubm:op {nick host hand chan text} {set target [lindex [split $text] 2]pushmode $chan +o $target}</code></pre></div>if you know a very little about scripting, you could write the other commands by editing this template <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Tue Jan 06, 2009 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2009-01-05T16:15:54-04:00</updated>

		<published>2009-01-05T16:15:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86741#p86741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86741#p86741"/>
		<title type="html"><![CDATA[$botnick command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86741#p86741"><![CDATA[
does anybody know (code) how can  I make the egg to respond on commands  like: botnick op, botnick voice .... instead of !op and !voice<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Mon Jan 05, 2009 4:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
