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

	<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>2006-10-31T08:54:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-10-31T08:54:18-04:00</updated>

		<published>2006-10-31T08:54:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67593#p67593</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67593#p67593"/>
		<title type="html"><![CDATA[Help with Kicksource Script - Bot not responding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67593#p67593"><![CDATA[
<blockquote class="uncited"><div>hes wot i wanna do, without dcc or anything, just plain in the channel i want anyone to type !kick and it kicks the source</div></blockquote>It already does that:<div class="codebox"><p>Code: </p><pre><code>bind pub n !kicks kicksource </code></pre></div>In your channel simply type:<div class="codebox"><p>Code: </p><pre><code>!kicks</code></pre></div>It would be unusuall if there were no instructions either within the script header or from where you downloaded it from.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Oct 31, 2006 8:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DeFirence]]></name></author>
		<updated>2006-10-31T05:11:46-04:00</updated>

		<published>2006-10-31T05:11:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67590#p67590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67590#p67590"/>
		<title type="html"><![CDATA[Help with Kicksource Script - Bot not responding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67590#p67590"><![CDATA[
ok, thanks for ur help, but it didnt actually help<br><br>hes wot i wanna do, without dcc or anything, just plain in the channel i want anyone to type !kick and it kicks the source<br><br>no matter if i use the code u gave me, the old one, other code from a website i cant get the bot to respond to a !kick or .kick ect command, it just ignores it<br><br>if theres a better package, pls help me get it, i cant find an http package anywhere other then egghttp<br><br>ta alot!<br><br>DeFirence<br><br><div class="codebox"><p>Code: </p><pre><code>bind pub n !kicks kicksourceproc kicksource {nick host handle chan text} {#ip:set server "localhost"#port:set port "8000"#login: (wird erzeugt aus (ab ins mirc) //echo $encode(admin:PASS,m) bei#pass auch das pass angeben ^^ und dann eintragen sonst tut das nicht#login (get it in mirc with //echo $encode(admin:PASS,m)set login "admin:pass"# **********  don't change anything under thisset sock [socket $server $port]puts $sock "GET /admin.cgi?mode=kicksrc HTTP/1.1"puts $sock "User-Agent:Mozilla"puts $sock "Host: $server"puts $sock "Authorization: Basic $login"puts $sock ""flush $sock}putlog "sourcekick loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8332">DeFirence</a> — Tue Oct 31, 2006 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-31T04:24:14-04:00</updated>

		<published>2006-10-31T04:24:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67589#p67589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67589#p67589"/>
		<title type="html"><![CDATA[Help with Kicksource Script - Bot not responding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67589#p67589"><![CDATA[
You should've spent that 12 hours actually reading the documentation, particularly the tcl-commands.doc that comes with eggdrop, and then you would have come across the documentation about "bind" and in particular:<br><br>    (4)  PUB<br>         bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;<br><br>         Description: used for commands given on a channel. The first word<br>           becomes the command and everything else is the text argument.<br>         Module: irc<br><br>and then you would have figured out the command ".kicksource" is a command you type in channel, not dcc.<br><br>As far as changing console triggers, that's not so easy, you'd have to modify the source code afaik. Fortunately, since you're dealing with a pub bind, you just need to change THAT command's trigger from ".kicksource" to "!kicksource" if you wish.<br><br>from:  bind pub n .kicksource kicksource <br>to:      bind pub n !kicksource kicksource <br><br>Of course, you could change the bind to a dcc bind, but be aware that the dcc bind uses different parameters for the proc:<br><br>    (2)  DCC<br>         bind dcc &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;handle&gt; &lt;idx&gt; &lt;text&gt;<br><br>         Description: used for partyline commands; the command is the first<br>           word and everything else becomes the text argument. The idx is<br>           valid until the user disconnects. After that, it may be reused,<br>           so be careful about storing an idx for long periods of time.<br>         Module: core<br><br>The script segment you posted does not appear to use the parameters from the pub bind (<span style="text-decoration:underline">nick host handle chan text</span>) so it <strong class="text-strong">should</strong> be safe to change the bind to a dcc bind (<em class="text-italics">but I'm assuming there is not more to the script that uses any of those parameters.)</em><br><br>If you change the bind to a dcc bind, you also have to change the parameters given to the proc:<div class="codebox"><p>Code: </p><pre><code>bind dcc n kicksource kicksourceproc kicksource {handle idx text} { </code></pre></div>BUT..<br>Even if you change it to a dcc bind/proc, you'd still have to use the "dot" character to use the command, in other words:<br><br>bind dcc - !mycommand whatever<br><br>would still have to be activated like:<br><br><span style="color:red"> .!mycommand</span><br><br>usually dcc binds, just use "command" without any predicate, so when you run them, you do "dot&lt;command&gt;"<br><br>You could also make the trigger a msg bind/proc, if you just want to use the command privately, read the tcl-commands.doc about the various bind types.<br><br>Also, is there a particular reason you're running egghttp rather than the http package that comes with eggdrop? egghttp is deprecated afaik, and was replaced with the http package.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Oct 31, 2006 4:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DeFirence]]></name></author>
		<updated>2006-10-31T03:05:40-04:00</updated>

		<published>2006-10-31T03:05:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67585#p67585</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67585#p67585"/>
		<title type="html"><![CDATA[Help with Kicksource Script - Bot not responding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67585#p67585"><![CDATA[
Lo all, ive just finished setting up a windrop eggdrop bot and now i need to add kicksource script to it.<br><br>I am having two problems, firstly, in console (dcc chat) with the bot, it wont understand if i type .kicksource<br>The next thing i need to do if change the console command into a trigger (!)<br><br>i am also running egghttp before this script.<br><br>please excuse me if its something really simple, i only learned wot Tcl was 12 hours ago...<br> <div class="codebox"><p>Code: </p><pre><code> bind pub n .kicksource kicksourceproc kicksource {nick host handle chan text} {#ip:set server "localhost"#port:set port "8000"#login: (wird erzeugt aus (ab ins mirc) //echo $encode(admin:PASS,m) bei#pass auch das pass angeben ^^ und dann eintragen sonst tut das nicht#login (get it in mirc with //echo $encode(admin:PASS,m)set login "$encode(admin:pass,m)"# **********  don't change anything under thisset sock [socket $server $port]puts $sock "GET /admin.cgi?mode=kicksrc HTTP/1.1"puts $sock "User-Agent:Mozilla"puts $sock "Host: $server"puts $sock "Authorization: Basic $login"puts $sock ""flush $sock}putlog "sourcekick script loaded" </code></pre></div>Thanks for your help.<br>DeFirence<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8332">DeFirence</a> — Tue Oct 31, 2006 3:05 am</p><hr />
]]></content>
	</entry>
	</feed>
