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

	<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-05-02T19:57:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-05-02T19:57:42-04:00</updated>

		<published>2007-05-02T19:57:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72454#p72454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72454#p72454"/>
		<title type="html"><![CDATA[on *:input:#: (MIRC+TCL) request (solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72454#p72454"><![CDATA[
aight, I'll keep that in mind <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Wed May 02, 2007 7:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-02T16:52:57-04:00</updated>

		<published>2007-05-02T16:52:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72451#p72451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72451#p72451"/>
		<title type="html"><![CDATA[on *:input:#: (MIRC+TCL) request (solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72451#p72451"><![CDATA[
Unfortunately, I have to repeat myself on and on... Hope this time you'll get it.<blockquote class="uncited"><div>DO NOT APPLY LIST COMMANDS ON STRINGS (and vice versa)</div></blockquote><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc kick:msg {nick uhost hand arg} {   set kchan [lindex $arg 0][snip]</code></pre></div></div></blockquote>$arg is a STRING, [lindex] is a LIST command. For this reason, you [split] $arg to convert it into a LIST.<div class="codebox"><p>Code: </p><pre><code>set kchan [lindex [split $arg] 0]</code></pre></div>Not too hard...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed May 02, 2007 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masheen]]></name></author>
		<updated>2007-05-02T11:44:48-04:00</updated>

		<published>2007-05-02T11:44:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72449#p72449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72449#p72449"/>
		<title type="html"><![CDATA[on *:input:#: (MIRC+TCL) request (solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72449#p72449"><![CDATA[
haha it is possible <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> its a mirc+tcl stuff i did. its working now.. very simple actualy... my mirc does the work.... i type in <strong class="text-strong">come in</strong> in the channel wer the bot is not there, and then the irc script triggers the word <strong class="text-strong">come in</strong> then sends the query command to the bot: <strong class="text-strong">join #</strong> which in turn the bot responds to my query by joining the channel i just gave it the command to join. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thanks for the help! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> very very much appreciated! i think the case is solved now. i have some stuffs working on and i might nid ur help again later. thanks for heping us noobs get started. again, it is people like u dat inspire us to be better. REP points added to yah on my list. ehehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8950">masheen</a> — Wed May 02, 2007 11:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-05-02T11:10:56-04:00</updated>

		<published>2007-05-02T11:10:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72447#p72447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72447#p72447"/>
		<title type="html"><![CDATA[on *:input:#: (MIRC+TCL) request (solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72447#p72447"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msg -|- entra kick:msg bind msg -|- chupi kick:sale proc kick:msg {nick uhost hand arg} {    set kchan [lindex $arg 0]    channel add $kchan    putquick "JOIN $kchan"    putserv "PRIVMSG $kchan :Here I am." } proc kick:sale {nick uhost hand arg} {    set kchan [lindex $arg 0]    channel remove $kchan    putquick "NOTICE $nick :I left that channel." } putlog "Join/Part tcl loaded by iamdeath."</code></pre></div>EDIT: Removed botnick, kreason, knick and cchannel, as they were not being used, yes now when the bot will join a channel, it will msg in that channel "Here I am." and when it leave it will send a notice to that person, that I left.<br><blockquote class="uncited"><div>thanks for the fast reply iamdeath  much appreciated. problem is, it has to be like this... say i am on #chan without my bot. and i want for it to join the chan... so i type the word come right? and on my mirc script, there are line that wil recognize what i just say and then my script will automatically query the bot: </div></blockquote>That is not possible, even if egghelp release 100000 versions of eggdrop. The thing is, if a bot is not in any channel and you type something in that channel how the heck will the bot know what goes around there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> ehh.. So it's your mIRC script which makes a query to the bot, again it's a query to the bot. But the way you want is only possible with a mIRC script or 2 bots linked and that 1 bot is present in that channel which can transfer the text to the different bot. With 1 bot who is not in that channel it's impossible to make it perform any command.<br><br>Cheers <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=5982">iamdeath</a> — Wed May 02, 2007 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masheen]]></name></author>
		<updated>2007-05-02T09:20:49-04:00</updated>

		<published>2007-05-02T09:20:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72446#p72446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72446#p72446"/>
		<title type="html"><![CDATA[solved]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72446#p72446"><![CDATA[
ei thanks for the idea iamdeath i got it to finally work heres the code:<br>NOTE: excuse the naming convention hehe, ill change it later. and dont wori bout the security il fix dat later (bind -|- intentional).<br><div class="codebox"><p>Code: </p><pre><code>bind msg -|- entra kick:msgbind msg -|- chupi kick:saleproc kick:msg {nick uhost hand arg} {global botnickset kchan [lindex $arg 0]set knick [lindex $arg 1]set kreason [lrange $arg 2 end]channel add $kchanputquick "JOIN $kchan"putquick "NOTICE $nick :Just joined $cchannel."}proc kick:sale {nick uhost hand arg} {global botnickset kchan [lindex $arg 0]set knick [lindex $arg 1]set kreason [lrange $arg 2 end]channel remove $kchanputquick "NOTICE $nick :Just joined $cchannel."}putlog "Join/Part tcl loaded by iamdeath."</code></pre></div>my last request instead is if anyone can put an onjoin msg for the bot. meaning, if i call it to a chan, and when it joins it says sumting, like putserv "PRIVMSG $chan :bot has arrived."shud i incorporate the onjoin on this script or shud i make a separate one for the onjoin? thanks thanks thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8950">masheen</a> — Wed May 02, 2007 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masheen]]></name></author>
		<updated>2007-05-02T08:11:21-04:00</updated>

		<published>2007-05-02T08:11:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72442#p72442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72442#p72442"/>
		<title type="html"><![CDATA[on *:input:#: (MIRC+TCL) request (solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72442#p72442"><![CDATA[
thanks for the fast reply iamdeath <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> much appreciated. problem is, it has to be like this... say i am on #chan without my bot. and i want for it to join the chan... so i type the word <strong class="text-strong">come</strong> right? and on my mirc script, there  are line that wil recognize what i just say and then my script will automatically query the bot:<div class="codebox"><p>Code: </p><pre><code>on *:input:#:{   if ($nick == mynick) &amp;&amp; ($1 == come) {  .msg botname join # }   if ($nick == mynick) &amp;&amp; ($1 == goaway) { .msg botname part # }}</code></pre></div>and when the bot recieves a query message: <strong class="text-strong">join #chan</strong> from me, it will then add #chan to its internal channel list (<span style="color:red">again not sure if this is possible with out manualy configureing the bot or with DDC add chan</span>) and then joins the channel. same thing if i say <strong class="text-strong">goaway</strong>. my mircscript will capture my on *:input:# --&gt; <strong class="text-strong">goaway</strong> and triggers the /msg botname part #chan<br><br>just a thought: the <strong class="text-strong">goaway</strong> command doesnt necesarily have to be like  the come command in a sense that, the bot cud just capture that i just sed goaway in a channel and it'l know that it has to part that channel without me /msg-ing him to part #chan... i hope i am clear <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> what do u think iamdeath?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8950">masheen</a> — Wed May 02, 2007 8:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-05-02T06:56:33-04:00</updated>

		<published>2007-05-02T06:56:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72438#p72438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72438#p72438"/>
		<title type="html"><![CDATA[on *:input:#: (MIRC+TCL) request (solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72438#p72438"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub o come script:joinproc script:join {nick uhost hand chan text} {set text [split $text]set cchannel [lindex $text 0]set key [lindex $text 1]if {$cchannel == ""} {puthelp "NOTICE $nick :You need to supply a channel name."; return}if {$key != ""} {putquick "JOIN $cchanel $key"; return}putquick "JOIN $cchannel"putquick "NOTICE $nick :Just joined $cchannel."}bind pub o goaway script:leaveproc script:leave {nick uhost hand chan text} {set text [split $text]set pchannel [lindex $text 0]if {$pchannel == ""} {puthelp "NOTICE $nick :You need to supply a channel name."; return}channel remove $pchannel ; utimer 1 saveputquick "NOTICE $nick :Just parted $pchannel."}putlog "Join - part tcl loaded by iamdeath."</code></pre></div>I have'nt tested it, but should work. To make it work, you should have atleast "o" flags. Make sure you're properly added with o flags and then try. Let me know if it works and yes, it works when the msg comes from the channel, if you want it a /msg let me know i'll edit it.<br><br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Wed May 02, 2007 6:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masheen]]></name></author>
		<updated>2007-05-02T11:51:02-04:00</updated>

		<published>2007-05-02T04:12:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72436#p72436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72436#p72436"/>
		<title type="html"><![CDATA[on *:input:#: (MIRC+TCL) request (solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72436#p72436"><![CDATA[
hi again. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> first of i have a question... is it possible for the BOT to add a channel to join by itself? if yes heres a request i have and hope sum1 can help me on this:<br><br>(This is an idea i got from <span style="color:red">arfer</span>'s bot(<span style="color:orange">colossus</span>) on dalnet channel #tcl)<br>1. from the mirc script:<div class="codebox"><p>Code: </p><pre><code>on *:input:#:{if ($nick == mynick) &amp;&amp; ($1 == come) {  .msg botname join # }   if ($nick == mynick) &amp;&amp; ($1 == goaway) { .msg botname part # }}</code></pre></div>2. Botside - when the bot recieves the message from <strong class="text-strong">mynick</strong> it adds the channel from its internal channels list (<span style="color:red">not sure if its possible without DCC-ing the bot to add chan</span>) and joins the channel where the word <strong class="text-strong">come</strong> was triggered or parts the channel if the word <strong class="text-strong">goaway</strong> is triggered. any help you guys can spare is greatly greatly appreciated. i was told by arfer its not a difficult script for the great scripters of this forum. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> hope m not asking too much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8950">masheen</a> — Wed May 02, 2007 4:12 am</p><hr />
]]></content>
	</entry>
	</feed>
