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

	<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-01-13T18:32:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2006-01-13T15:35:22-04:00</updated>

		<published>2006-01-13T15:35:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59381#p59381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59381#p59381"/>
		<title type="html"><![CDATA[BotAdmin - Need lil help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59381#p59381"><![CDATA[
Thanks Sir, that worked!!  <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=7220">cache</a> — Fri Jan 13, 2006 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-13T15:28:55-04:00</updated>

		<published>2006-01-13T15:28:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59380#p59380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59380#p59380"/>
		<title type="html"><![CDATA[BotAdmin - Need lil help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59380#p59380"><![CDATA[
That's because $botnick is still unknown before the bot has connected. Change<div class="codebox"><p>Code: </p><pre><code>bind pub - $botnick admin:sort</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>bind pub - $nick admin:sort</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jan 13, 2006 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2006-01-13T18:32:12-04:00</updated>

		<published>2006-01-13T15:12:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59379#p59379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59379#p59379"/>
		<title type="html"><![CDATA[BotAdmin - Need lil help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59379#p59379"><![CDATA[
Ok I put this script on my bot and set the flags to a|a and restarted.. <br><div class="codebox"><p>Code: </p><pre><code>################################################## Script: BotAdmin              Version: 0.2    ## Author: FriedCPU                              ##-----------------------------------------------##              What Does It Do?                 ## Provides commands that usually need to be     ## executed on the partyline, saving time having ## tobe in dcc-chat / telnet with bot.           ##-----------------------------------------------##              What Commands?                   ## rehash - rehashes bot                         ## restart - restarts bot                        ## hop - makes bot hop (part then join) the chan ## die - kills the bot                           ## Note: if a command is not specified, then it  ## responds with a random come back              ##-----------------------------------------------##              How?                             ## Usage: &lt;botname&gt; &lt;command&gt;                    ## if the bots name was charlie...               ## charlie rehash                                ## charlie restart                               ## charlie hop                                   ## etc...etc...                                  ##################################################bind pub - $botnick admin:sortproc formatize { text } { return "\002\00314\[\002$text\002\]\003\002" }proc admincheck { handle } {    if {![matchattr $handle a|a]}         return "no"    } else {        return "yes"    }}proc axxdenied { n } {    return "[formatize "$n"] Access Denied"}set randresponce {    "What?"    "Huh?"    "What do you want?"    "Arrrrghh"    "Stop calling my name!"    "What you talkin' about Willis?"    "I am Reptar hear me rawrr!"    "Rawwrrr"    "Again Again!"    "I'l Be Back"    "Astalavista, Baby"    "When it all gets to much, fukitol"}proc admin:sort { n u h c t } {    global randresponce    if {$t == "rehash"} {        if {[admincheck $h] == "yes"} {            rehash            putserv "PRIVMSG $c :[formatize "$n"] Rehash Complete"        } else {            putserv "PRIVMSG $c :[axxdenied]"        }    } elseif {$t == "restart"} {        if {[admincheck $h] == "yes"} {            putserv "PRIVMSG $c :[formatize "$n"] Restarting..."            utimer 2 "restart"        } else {            putserv "PRIVMSG $c :[axxdenied]"        }    } elseif {$t == "hop"} {        if {[admincheck $h] == "yes"} {            putserv "PRIVMSG $c :[formatize "$n"] Hopping Channel"            putserv "PART $c :Hop Hop Hop"        } else {            putserv "PRIVMSG $c :[axxdenied $n]"        }    } elseif {$t == "die"} {        if {[admincheck $h] == "yes"} {            die "Connection Rest by $n"        } else {            putserv "PRIVMSG $c :[axxdenied]"        }    } else {        putserv "PRIVMSG $c :[lindex $randresponce [rand [llength $randresponce]]]"    }}putlog "\002BotAdmin\002 v\0020.2\002 by \002FriedCPU\002 Loaded"</code></pre></div>It worked...<br><br>[10:09am] &lt;cache&gt; X restart<br>[10:09am] &lt;@X&gt; [cache] Restarting...<br>[10:09am] * Parts: @X(X@X)<br>[10:10am] * Joins: X (X@X)<br><br>Problem is.. if I reboot, or end process to bot and reload it by clicking eggdrop.exe and bot reconnects to chat...<br><br>It stops working.... weird thing is, it starts working if I go in putty and 'rehash'.<br><br>All my nick has is an 'a' flag - didn't want to use owner flags.<br><br>Anyone know why? Or have a suggestion of a better script?<br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Fri Jan 13, 2006 3:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
