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

	<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>2004-06-14T02:59:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-06-14T02:59:38-04:00</updated>

		<published>2004-06-14T02:59:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37320#p37320</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37320#p37320"/>
		<title type="html"><![CDATA[join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37320#p37320"><![CDATA[
You can type !join #x or !leave #x on any channel bot is on...You save this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub m "!invite" pub:invite proc pub:invite {nick uhost hand chan args} { channel add $args } bind pub m "!leave" pub:leave proc pub:leave {nick uhost hand chan args} { channel remove $args }</code></pre></div>as join<strong class="text-strong">.tcl</strong> and put it in Eggdrop <strong class="text-strong">scripts</strong> folder.When you do this, put line <strong class="text-strong">source scripts/join.tcl</strong> in your eggdrop.conf, after that you need to rehash bot (.rehash) and then script should work  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Mon Jun 14, 2004 2:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-13T17:58:10-04:00</updated>

		<published>2004-06-13T17:58:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37315#p37315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37315#p37315"/>
		<title type="html"><![CDATA[join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37315#p37315"><![CDATA[
1) Do I put that in the config? eggdrop.conf or where exactly.<br><br>2) And according to your script whenever I type !join in X channel the bot will join #x, and if I type !leave in X channel, bot will leave #x.<br><br>By x i mean any channel.<br><br>And whenever I add/remove a script do I have to restart bot or can I just do a command from dcc chat?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Sun Jun 13, 2004 5:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-13T09:15:04-04:00</updated>

		<published>2004-06-13T09:15:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37290#p37290</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37290#p37290"/>
		<title type="html"><![CDATA[join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37290#p37290"><![CDATA[
Here is the one I use.<br>You can change/modify the binding triggers according<br>to your own needs. This one is a bit complicated than<br>the one posted above.<br><br><div class="codebox"><p>Code: </p><pre><code>### Public command channel join/part script ###bind pub n !join pub:+chan bind pub n !part pub:-chan bind pub n .+chan pub:+chan bind pub n .-chan pub:-chan proc pub:+chan  {nick uhost hand chan text} {        set args [split [cleanarg $text]]        if {[llength $text]&lt;1} {                putserv "NOTICE $nick :Usage: .+chan &lt;#channel&gt;"                return 0        }        channel add $text        save  putserv "NOTICE $nick :I have added $args to my channel list."  return 0}proc pub:-chan {nick uhost hand chan text} {        set args [split [cleanarg $text]]        if {[llength $text]&lt;1} {                putserv "NOTICE $nick :Usage: .-chan &lt;#channel&gt;"                return 0        }        channel remove $text        save   putserv "NOTICE $nick :I have removed $text from my channel list."  return 0}proc cleanarg {arg} {  set response ""  for {set i 0} {$i &lt; [string length $arg]} {incr i} {    set char [string index $arg $i]    if {($char != "\12") &amp;&amp; ($char != "\15")} {      append response $char    }  }  return $response}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jun 13, 2004 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-06-11T08:46:11-04:00</updated>

		<published>2004-06-11T08:46:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37211#p37211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37211#p37211"/>
		<title type="html"><![CDATA[join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37211#p37211"><![CDATA[
Try tcl-commands.doc <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> This should work:<br><div class="codebox"><p>Code: </p><pre><code>bind pub m "!invite" pub:inviteproc pub:invite {nick uhost hand chan args} {channel add $args}bind pub m "!leave" pub:leaveproc pub:leave {nick uhost hand chan args} {channel remove $args}</code></pre></div>When you will type !invite #channel, bot will join channel you typed after !invite...Same goes for !leave...Only people with m flag can make bot join or leave channel...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Fri Jun 11, 2004 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scorchin]]></name></author>
		<updated>2004-06-11T08:27:34-04:00</updated>

		<published>2004-06-11T08:27:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37210#p37210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37210#p37210"/>
		<title type="html"><![CDATA[join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37210#p37210"><![CDATA[
how do i make a script that will allow me to type !invite bot #chan and it will send the eggdrop to that channel? but i only want it to work for me. i have been able to do this in mIRC but nothing like this in tcl  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad">  <br>cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5030">scorchin</a> — Fri Jun 11, 2004 8:27 am</p><hr />
]]></content>
	</entry>
	</feed>
