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

	<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-08-01T14:33:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2009-08-01T14:33:28-04:00</updated>

		<published>2009-08-01T14:33:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89716#p89716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89716#p89716"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89716#p89716"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>Change: Code: regsub -all -nocase {%i1} $message [lindex [split $input] 1] message To: Code: if {[llength [split $input]] &gt; 1 } {    regsub -all -nocase {%i1} $message [lindex [split $input] 1] message } else {    regsub -all -nocase {%i1} $message $nick message } </code></pre></div><br>Hi,<br><br>It didn't work, bot just say blank still.<br><br><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=9651">holycrap</a> — Sat Aug 01, 2009 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2009-07-29T01:53:25-04:00</updated>

		<published>2009-07-29T01:53:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89694#p89694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89694#p89694"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89694#p89694"><![CDATA[
Hi Speechles<div class="codebox"><p>Code: </p><pre><code># Multi-Bind Messaging (the easy way to do this)# AKA, PutServ-O-Matic v1.0# by speechles (w/help from egghelp! yay!)# Construct your triggers|channel|message# here using the format below:# "TRIGGER|#CHANNEL|METHOD AND MESSAGE"# add as little, or as many as you want but you# MUST use the format described above!# You also have a few variables to use# %b - will be replaced with $::botnick (bots current nickname)# %n - will be replaced with $nick (person triggering)# %c - will be replaced with $chan (channel triggered in)# %u - will be replaced with $uhost (person triggering unique host)# %h - will be replaced with $hand (person triggering handle)# %i - will be replaced with user $input (entire thing)# %i1 - will be replaced with user $input (just the first word)# %i2 - will be replaced with user $input (second to last words)# below are merely some examples.variable mycommands {  "*slaps %b*|#test|privmsg %c :\001action blocks the slap and kicks %n in the face.\001"  "!notice*|#test|notice %n :notice message"  "!query*|#test|privmsg %n :query/private message"  "!kickme*|#test|kick %c %n :kick fulfilled.. hehe \037:P\037"  "!voiceme*|*|mode %c +v %n"  "!voiceme*|*|privmsg %c :\002%n\002, feel the \002Power\002 of voice!"  "!repeat*|*|privmsg %c :%n just said \002%i\002 :P"  "!voicenick*|*|mode %c +v %i1"  "!kickbannick*|*|mode %c +b %i1!*@*"  "!kickbannick*|*|kick %c %i1 :%i2 (Requested by %n)"  "!kicknick*|*|kick %c %i1 :%i2 (Requested by %n)"}# Script begins - change nothing below herebind pubm -|- "*" mycommands_procproc mycommands_proc {nick uhand hand chan input} {   foreach item $::mycommands {      set trig [lindex [split $item \|] 0]      regsub -all -nocase {%b} $trig $::botnick trig      if {[string match -nocase $trig $input]} {         if {[string match -nocase [lindex [split $item \|] 1] $chan]} {            set message [join [lrange [split $item \|] 2 end]]            regsub -all -nocase {%b} $message $::botnick message            regsub -all -nocase {%n} $message $nick message            regsub -all -nocase {%c} $message $chan message            regsub -all -nocase {%u} $message $uhand message            regsub -all -nocase {%h} $message $hand message            regsub -all -nocase {%i1} $message [lindex [split $input] 1] message            regsub -all -nocase {%i2} $message [join [lrange [split $input] 2 end]]] message            regsub -all -nocase {%i} $message [join [lrange [split $input] 1 end]]] message            putserv "$message"         }      }   }}putlog "Multi-bind messaging with action missles script loaded."</code></pre></div> <br>can i used file /data/command.txt for variable mycommands ?<br>and can add some command via: !addcmd !mode*|#myroom|mode %c  %i1   to command.txt ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Wed Jul 29, 2009 1:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-06-15T13:30:48-04:00</updated>

		<published>2009-06-15T13:30:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89201#p89201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89201#p89201"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89201#p89201"><![CDATA[
Sure it is... As I said, /me, /act, describe, etc are just aliases for the ACTION ctcp request... Which, in turn is a simple PRIVMSG.. (ctcp's are not part of the irc specifications, but a client extension).<br>As such, irc servers don't know of any ME, ACT, DESC, DESCRIBE commands or similar... they know of PRIVMSG (used for ctcp requests) and NOTICE (used for ctcp replies).<br><br>My previous post explained how to do this using the putserv-o-matic script suggested by speechles...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jun 15, 2009 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2009-06-15T09:06:57-04:00</updated>

		<published>2009-06-15T09:06:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89199#p89199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89199#p89199"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89199#p89199"><![CDATA[
Hi again,<br><br>So, it's not possible for the bot to do this?<br><br>&lt;holycrap&gt; !hi dude<br>*bot says hi to dude<br><br>The "describe" method in mIRC can do this which is like /me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Mon Jun 15, 2009 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-06-13T22:31:42-04:00</updated>

		<published>2009-06-13T22:31:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89183#p89183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89183#p89183"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89183#p89183"><![CDATA[
/me is merely an alias for the ACTION ctcp request. As such, it is a privmsg. The simplest way of sending such a request would be something like this:<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG #channel :\001ACTION does something\001"</code></pre></div>For use with the script suggested by speechles, you'd add an entry such as below:<div class="codebox"><p>Code: </p><pre><code>"!act*|#yourchan| privmsg %c :\001ACTION does something\001"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jun 13, 2009 10:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2009-06-13T19:41:38-04:00</updated>

		<published>2009-06-13T19:41:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89181#p89181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89181#p89181"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89181#p89181"><![CDATA[
Kewl! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>In mIRC there's a "describe" "METHOD." Which is equivalent to the bot doing "/me &lt;messag&gt;" Is there a METHOD in TCL that does that? I only see "notice and privmsg."<br><br>Thanks!<br><br><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=9651">holycrap</a> — Sat Jun 13, 2009 7:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-06-13T09:45:00-04:00</updated>

		<published>2009-06-13T09:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89178#p89178</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89178#p89178"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89178#p89178"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Use the <a href="http://forum.egghelp.org/viewtopic.php?t=15889&amp;start=17" class="postlink">Putserv-O-Matic</a> script, and change your list to look like below:<div class="codebox"><p>Code: </p><pre><code>  "!wc*|#yourchan|privmsg %c :welcome to my room %i1. good luck and have fun"  "!bye*|#yourchan|privmsg %c :good bye %i1. See you again"</code></pre></div>Replace the "#yourchan" found above (just it not pipes on either side) with either "*" for all channels or the "#name" of your channel. Change the flags in the bind from -|- to your flavor of control. This should accomplish your goal.</div></blockquote>What were to happen if %i1 was not given?<br>For exe: &lt;user&gt; !wc     <br><br>and no text after the command was given? Would it be possible to default the null text after the command and return the person triggering the command?<br><br>&lt;holycrap&gt; !wc<br>&lt;bot&gt; welcome to channel holycrap</div></blockquote>Change:<div class="codebox"><p>Code: </p><pre><code>regsub -all -nocase {%i1} $message [lindex [split $input] 1] message</code></pre></div>To:<div class="codebox"><p>Code: </p><pre><code>if {[llength [split $input]] &gt; 1 } {   regsub -all -nocase {%i1} $message [lindex [split $input] 1] message } else {   regsub -all -nocase {%i1} $message $nick message}</code></pre></div>Yeah, that would be rather simple and trivial to accomplish. <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=8138">speechles</a> — Sat Jun 13, 2009 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2009-06-13T08:53:20-04:00</updated>

		<published>2009-06-13T08:53:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89177#p89177</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89177#p89177"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89177#p89177"><![CDATA[
<blockquote class="uncited"><div>Use the <a href="http://forum.egghelp.org/viewtopic.php?t=15889&amp;start=17" class="postlink">Putserv-O-Matic</a> script, and change your list to look like below:<div class="codebox"><p>Code: </p><pre><code>  "!wc*|#yourchan|privmsg %c :welcome to my room %i1. good luck and have fun"  "!bye*|#yourchan|privmsg %c :good bye %i1. See you again"</code></pre></div>Replace the "#yourchan" found above (just it not pipes on either side) with either "*" for all channels or the "#name" of your channel. Change the flags in the bind from -|- to your flavor of control. This should accomplish your goal.</div></blockquote>What were to happen if %i1 was not given?<br>For exe: &lt;user&gt; !wc     <br><br>and no text after the command was given? Would it be possible to default the null text after the command and return the person triggering the command?<br><br>&lt;holycrap&gt; !wc<br>&lt;bot&gt; welcome to channel holycrap<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Sat Jun 13, 2009 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2009-06-12T07:31:47-04:00</updated>

		<published>2009-06-12T07:31:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89172#p89172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89172#p89172"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89172#p89172"><![CDATA[
i want to some one in list master of bot can public add command  to bot in room as:<br><br>!add !bye Bye $1. good night and see you again<br><br>bot will save this cmd and when some master type<br><br>!bye Nick<br><br>bot will say: Bye Nick. good night and see you again.<br><br>what am i doing?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Fri Jun 12, 2009 7:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-06-11T17:38:08-04:00</updated>

		<published>2009-06-11T17:38:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89165#p89165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89165#p89165"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89165#p89165"><![CDATA[
Use the <a href="http://forum.egghelp.org/viewtopic.php?t=15889&amp;start=17" class="postlink">Putserv-O-Matic</a> script, and change your list to look like below:<div class="codebox"><p>Code: </p><pre><code>  "!wc*|#yourchan|privmsg %c :welcome to my room %i1. good luck and have fun"  "!bye*|#yourchan|privmsg %c :good bye %i1. See you again"</code></pre></div>Replace the "#yourchan" found above (just it not pipes on either side) with either "*" for all channels or the "#name" of your channel. Change the flags in the bind from -|- to your flavor of control. This should accomplish your goal.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jun 11, 2009 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2009-06-11T07:57:16-04:00</updated>

		<published>2009-06-11T07:57:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89161#p89161</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89161#p89161"/>
		<title type="html"><![CDATA[public command !add !fun text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89161#p89161"><![CDATA[
i want to add some cmd funy to my bot as:<br><br>on master:text:!add !wc welcome to my room $1 .good luck and have fun.<br>on master:text:!add !bye good bye $1. See you again<br><br>when i used that cmd in Room<br><br>!wc abc<br>bot will say: welcome to my room abc .good luck and have fun.<br>!bye abc<br>bot will say: good bye abc . See you again<br><br>can you help me? thank alot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Thu Jun 11, 2009 7:57 am</p><hr />
]]></content>
	</entry>
	</feed>
