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

	<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>2011-01-13T19:23:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2011-01-13T19:23:09-04:00</updated>

		<published>2011-01-13T19:23:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95657#p95657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95657#p95657"/>
		<title type="html"><![CDATA[Re: Need help with A fun.tcl (commands react on 3 ways)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95657#p95657"><![CDATA[
<blockquote class="uncited"><div>Hi everybody.<br>I search the forum, but don't find A proper answer on it.<br>I'm also A newbie in tlc.</div></blockquote>hello Gunnie.<br>my english is very bad but I'll try to help.<br>if you are looking for scripts for Eggdrop then you should not search only specific forums but also in the World Wide Web<br><br><a href="http://www.eggdrop-help.de/page/download/8/" class="postlink">http://www.eggdrop-help.de/page/download/8/</a><br><br>there loading the channelservice.tcl down. you need only make a difference with the texts in your language.<br><br><br>or if you think something like that then here:<br><div class="codebox"><p>Code: </p><pre><code>bind PUB -|- !HI pub:HIproc pub:HI {nick host hand chan arg} {global botnickset arg [split $arg]set nick [split $nick]if {$arg == ""} {set arg $nick}if {[isbotnick $arg]} {putquick "PRIVMSG $chan :Hello $nick im the Bot on $chan"return 0}if {![onchan $arg $chan]} {putquick "PRIVMSG $chan :$arg is not on $chan."return 0}putquick "PRIVMSG $chan :Hello $arg welcome to $chan"}</code></pre></div>result:<br>14/01/11 01:05:46 &lt;Diamond85&gt; !hi<br>14/01/11 01:05:46 &lt;@EggDrop&gt; Hello Diamond85 welcome to #BestIRCd<br><br>14/01/11 01:05:54 &lt;Diamond85&gt; !hi EggDrop<br>14/01/11 01:05:54 &lt;@EggDrop&gt; Hello Diamond85 im the Bot on #BestIRCd<br><br>14/01/11 01:06:01 &lt;Diamond85&gt; !hi aaaaa<br>14/01/11 01:06:01 &lt;@EggDrop&gt; Hello aaaaa welcome to #BestIRCd<br><br>14/01/11 01:06:06 &lt;Diamond85&gt; !hi abc<br>14/01/11 01:06:06 &lt;@EggDrop&gt; abc is not on #BestIRCd.<br><br>Can you German? if so it would be easier for me because my English is not so good, too <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=10289">Diamond85</a> — Thu Jan 13, 2011 7:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gunnie]]></name></author>
		<updated>2011-01-04T15:26:22-04:00</updated>

		<published>2011-01-04T15:26:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95551#p95551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95551#p95551"/>
		<title type="html"><![CDATA[Need help with A fun.tcl (commands react on 3 ways)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95551#p95551"><![CDATA[
Hi everybody.<br>I search the forum, but don't find A proper answer on it.<br>I'm also A newbie in tlc.<br><br>Some friends of mine compiled A fun.tcl (bot react on pub-commands).<br>Now I'm trying to put an extra line in it,so I can make my commands react on 3 ways.<br>1. !push (example)<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !brb brb_msgproc brb_msg {nick uhost hand chan args} {  putchan $chan "eventjes geduld mensen ... $nick komt zodadelijk weer :)"  return 1}</code></pre></div>2. !push nick (example)<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !bye bye_msgproc bye_msg {nick uhost hand chan args} {  if {[lindex $args 0] == ""} { puthelp "notice $nick :gebruik !bye &lt;nick&gt;" ; return 0 }  putchan $chan "Tot ziens $args ... ik hoop dat je gauw weer terug komt ... cya ... :-)"  return 1}</code></pre></div>3. !push nick/botnick (example)<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !badje badje_msgproc badje_msg {nick uhost hand chan args} {global botnick  if {[lindex $args 0] == ""} { puthelp "notice $nick :gebruik !badje &lt;nick&gt;" ; return 0 }  if {[lindex $args 0] == $botnick } { putchan $chan "'t Is nie omda gij raar riekt $nick , dat ik in bad moet hé!" ; return 0 }  putchan $chan "$nick neemt een heerlijk heet badje samen met $args, Oohhh ... wat een passie ... of zijn jullie met rubberen eendjes aan't spelen :ppp"  return 1}</code></pre></div>The first one I can make.<br>And one where the bot react on nick/botnick also<br><br>But I can't figure out how to make it work in one code. (like in example 3, but that in that code all 3 manners are present.)<br><br>Sorry if mine English is not perfect,but I'm Belgian.<br>That's also the reason that my commands are in Dutch.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11480">gunnie</a> — Tue Jan 04, 2011 3:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
