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

	<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>2005-05-13T01:50:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-05-13T01:50:04-04:00</updated>

		<published>2005-05-13T01:50:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49425#p49425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49425#p49425"/>
		<title type="html"><![CDATA[Bot request script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49425#p49425"><![CDATA[
Here is the script i was talking about, I have NO idea if it even works but try it out.<br><div class="codebox"><p>Code: </p><pre><code># Configuration# homechannel where they can requestset setting(home) "#v1per"# users the channel needs atleastset setting(needed) "20"# deny request if there is no Q or L?set setting(service) "1"# the flags he wantsset setting(flags) "+ao"# end of config# don't touch this setting!set setting(busy) 0bind pub -|- !request    request:pubproc request:pub {nick host hand chan arg} {  global setting  # ignore the request because it isn't the request channel  if {![string equal $chan $setting(home)]} {   return 0  }  if {$setting(busy)} {   putquick "NOTICE $nick :There is currently already an request in progress."   return 0  }  set channel [lindex [split $arg] 0]  # tell him he needs to input a channel first  if {$channel == ""} {   putquick "NOTICE $nick :Please state the channel you wish to request for."   return 0  }  if {[validchan $channel]} {   return 0;  }  # activate the busy signal so no other requests can be done  bind RAW -|- 315         request:endofwho  set setting(busy) 1  set setting(chan) "$channel"  set setting(nick) "$nick"  channel add $channel}  proc request:endofwho {from key arg} {   global setting   if {$setting(busy)} {    if {![onchan $setting(nick) $setting(chan)] || ![isop $setting(nick) $setting(chan)]} {     set setting(busy) 0     putquick "NOTICE $setting(nick) :You aren't on $setting(chan) or you're not opped. Request denied."     channel remove $setting(chan)     unbind RAW -|- 315         request:endofwho     return 0    }   if {$setting(service)} {    if {![onchan L $setting(chan)] &amp;&amp; ![onchan Q $setting(chan)]} {     set setting(busy) 0     putquick "NOTICE $setting(nick) :Q or L was not found on $setting(chan). Request denied."     channel remove $setting(chan)     unbind RAW -|- 315         request:endofwho     return 0    }   }   if {[llength [chanlist $setting(chan)]] &lt; $setting(needed)} {     set setting(busy) 0     putquick "NOTICE $setting(nick) :$setting(chan) has less than $setting(needed) users. Request denied."     channel remove $setting(chan)     unbind RAW -|- 315         request:endofwho     return 0   } if {![validuser [nick2hand $setting(nick)]]} {  adduser $setting(nick) *!*@[lindex [split [getchanhost $setting(nick) $setting(chan)] @] 1] }   chattr [nick2hand $setting(nick)] |+n $setting(chan)  putquick "NOTICE $setting(nick) :The request was succesfull. I will stay here. Please give me $setting(flags) on [request:service $setting(chan)]"  putquick "PRIVMSG $setting(home) :$setting(nick) requested me for $setting(chan). The channel has [llength [chanlist $setting(chan)]] users. And they have the service bot: [request:service $setting(chan)]. Request was accepted."  unset setting(chan); unset setting(nick)  set setting(busy) 0  unbind RAW -|- 315         request:endofwho  return 1  }}proc request:service {channel} {  if {[onchan L $channel]} {    return "L"  } elseif {[onchan Q $channel]} {    return "Q"  }}</code></pre></div>If you need help with it, my nickname on Quakenet is metroid and you can find me in #v1per or #development<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri May 13, 2005 1:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-05-13T01:45:31-04:00</updated>

		<published>2005-05-13T01:45:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49424#p49424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49424#p49424"/>
		<title type="html"><![CDATA[Bot request script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49424#p49424"><![CDATA[
I've seen this script before and it's crappy as hell.<br>If someone were to request a bot to #FEDS or #HELP in caps, the bot would still join.<br><br>I wrote a small request script awhile back for someone that wanted it, i'll go see if i can find it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri May 13, 2005 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diablo]]></name></author>
		<updated>2005-05-09T13:55:05-04:00</updated>

		<published>2005-05-09T13:55:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49262#p49262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49262#p49262"/>
		<title type="html"><![CDATA[Bot request script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49262#p49262"><![CDATA[
<blockquote class="uncited"><div>And how does your bot communicate with the other rand bots ?</div></blockquote>they are linked..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6182">Diablo</a> — Mon May 09, 2005 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dizzle]]></name></author>
		<updated>2005-05-02T14:26:57-04:00</updated>

		<published>2005-05-02T14:26:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48900#p48900</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48900#p48900"/>
		<title type="html"><![CDATA[Bot request script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48900#p48900"><![CDATA[
Wel i have this script for you, a friend of mine made it for me a long time ago <br><br>Modify it like you want, now its checking for op's  L/Q on chan (Q-net) and number of users on channel <br><br>Its not sending an random bot, the bind is like this !request &lt;botname&gt; #channel modify the script at your desires<br><br>have fun with it <br><div class="codebox"><p>Code: </p><pre><code>set tbotnick "botname"bind pub -|- !request pub:requestproc pub:request {n u h c t} {  global tbotnick  global bot  set bot [lindex [split $t " "] 0]  set ::nickk $n  set ipmask [lindex [split [maskhost $n![getchanhost $n $c]] "@"] 1]  set userm [lindex [split [getchanhost $n $c] "@"] 0]  set ::userhost *!*$userm@$ipmask  set ::channel [lindex [split $t " "] 1]  if {$bot != $tbotnick} { return 0 }  if {$c != "#pcw.be.priv"} { return 0 }  if {$::channel == "#help" || $::channel == "#feds" || $::channel == "#0,0" || $::channel == "#quakenet" || $::channel == "#scripting" || $::channel == "#tcl" } { return 0 }  if {$::channel == ""} {        putserv "NOTICE $n :Wrong !request-format."        putserv "NOTICE $n :To request use: 4!request botname #channel"  } else {          if {[string first "#" $::channel] == -1} {          putserv "NOTICE $n :Wrong !request-format."          putserv "NOTICE $n :To request use: 4!request botname #channel"  } else {    if {$::channel != ""} {          set chan $::channel          global check; global uhost          channel add $::channel          set uhost(chans) $u          set check(chans) $n          putserv "NOTICE $n :Request sent. Checking if the channel meets our Requirements, please wait..."          utimer 15 check     } else {          putserv "NOTICE $n :Wrong !request-format."          putserv "NOTICE $n :To request use: 4!request botname #channel"            }     }  }}proc check { } {global botglobal checkglobal uhostputlog "check chans is $check(chans) and channel is $::channel"   if {![isop $check(chans) $::channel]} {      putlog "Yea, its sayin ure not opped.. [censored]"      putquick "privmsg $::channel : $::nickk is not opped on $::channel!" -next      utimer 5 remove_chan   } else {     set userz 0     set limit 0     set service 0     foreach nickname [chanlist $::channel] {        if { $nickname == "Q" || $nickname == "L" } { set service 1 }           if { $userz &lt; 20 } {              incr userz           } else { set limit 1 }     }        if { $limit &gt; 0 &amp;&amp; $service &gt; 0 } {         putquick "privmsg $::channel :User $::nickk Youre channel met the requirements, The bot will join in a second. Thank you for using out services"     } else {      if { $limit &lt; 1 || $service &lt; 1 } {        set rando 1        putlog "Channel $::channel removed for none complience"        putquick "privmsg $::channel :Bot will not stay reason \( 20 users \[ $limit \]\) or \( L or Q \[ $service \]\)" -next        utimer 5 remove_chan      }    }   } }  proc remove_chan { } { channel remove $::channel }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6156">Dizzle</a> — Mon May 02, 2005 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-02T09:31:56-04:00</updated>

		<published>2005-05-02T09:31:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48881#p48881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48881#p48881"/>
		<title type="html"><![CDATA[Bot request script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48881#p48881"><![CDATA[
And how does your bot communicate with the other rand bots ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon May 02, 2005 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diablo]]></name></author>
		<updated>2005-05-02T06:36:56-04:00</updated>

		<published>2005-05-02T06:36:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48868#p48868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48868#p48868"/>
		<title type="html"><![CDATA[Bot request script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48868#p48868"><![CDATA[
Hello!<br><br>if anybody know sicherheit @ qnet, then you know bots can be requested. <br><br>i am wondering if there is script when user msg bot with /msg &lt;botnick&gt; request #channel , then this &lt;botnick&gt; joins that channel and checks if there is enought user on it, if it is ok then some random bot join that chan.<br>does anybody know that script?<br><br>LP<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6182">Diablo</a> — Mon May 02, 2005 6:36 am</p><hr />
]]></content>
	</entry>
	</feed>
