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

	<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-02-03T21:33:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-02-03T21:33:03-04:00</updated>

		<published>2006-02-03T21:33:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60091#p60091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60091#p60091"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60091#p60091"><![CDATA[
help me!!!! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Fri Feb 03, 2006 9:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-02-02T20:01:12-04:00</updated>

		<published>2006-02-02T20:01:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60059#p60059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60059#p60059"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60059#p60059"><![CDATA[
ok, thx but what must I make... i am lost <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> that would be sympathetic to help me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Thu Feb 02, 2006 8:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-02-02T16:19:10-04:00</updated>

		<published>2006-02-02T16:19:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60050#p60050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60050#p60050"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60050#p60050"><![CDATA[
check your var names in the if expressions. You are comparing $channel and $botnicks with $request::homechan which will hardly be both true.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Feb 02, 2006 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-02-02T13:19:30-04:00</updated>

		<published>2006-02-02T13:19:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60040#p60040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60040#p60040"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60040#p60040"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set botnicks "bot bot2 bot3"</code></pre></div><br><br><div class="codebox"><p>Code: </p><pre><code>bind PUB  -|-  !request [namespace current]::request } proc request::request {nickname hostname handle channel arguments} {  if {[string equal -nocase $channel $request::homechan]} {  if {[string equal -nocase $botnicks $request::homechan]} {   if {!$request::busy} {    set chan [lindex [split $arguments] 0]    if {$chan != "" &amp;&amp; ![validchan $chan]} {     if {[string index $chan 0] == "#"} {</code></pre></div><br>... alway no good ... I try but i can't.<br><br>!request bot #chan<br><br>no reponse<br>no error dcc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Thu Feb 02, 2006 1:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-02-02T09:47:26-04:00</updated>

		<published>2006-02-02T09:47:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60032#p60032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60032#p60032"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60032#p60032"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind PUB  -|-  !request [namespace current]::request } proc request {n u h c t} { foreach {botnicks chan} [split $t] break   if {$requestbot == ""} {      putserv "NOTICE $nick :Wrong !request-format."      putserv "NOTICE $nick :To request use: 4!request &lt;bot-nick&gt; #channel"if {[string first $requestbot $botnicks] != -1} { if {[string equal -nocase $channel $request::homechan]} {   if {!$request::busy} {    set chan [lindex [split $arguments] 0]    if {$chan != "" &amp;&amp; ![validchan $chan]} {     if {[string index $chan 0] == "#"} {      set request::busy 1</code></pre></div><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> no reponse , help me please<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Thu Feb 02, 2006 9:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-02-02T00:01:27-04:00</updated>

		<published>2006-02-02T00:01:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60004#p60004</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60004#p60004"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60004#p60004"><![CDATA[
dude, go learn Tcl's basics before posting here, you are supposed to know that [$botnicks $bn] is a nonsense<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Feb 02, 2006 12:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-02-01T11:18:18-04:00</updated>

		<published>2006-02-01T11:18:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59993#p59993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59993#p59993"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59993#p59993"><![CDATA[
no solution? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Wed Feb 01, 2006 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-01-31T10:26:13-04:00</updated>

		<published>2006-01-31T10:26:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59963#p59963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59963#p59963"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59963#p59963"><![CDATA[
set botnicks "Bot Bot2"<br><br><div class="codebox"><p>Code: </p><pre><code>proc request {n u h c t} {    foreach {bn chan} [split $t] break    if ![$botnicks $bn] return   if {[string equal -nocase $channel $request::homechan]} {   if {!$request::busy} {    set chan [lindex [split $arguments] 0] ...</code></pre></div><br>!request Bot #chan<br><br><br>no reponse...<br><br>Prbl is?<br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Tue Jan 31, 2006 10:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-31T00:41:05-04:00</updated>

		<published>2006-01-31T00:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59953#p59953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59953#p59953"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59953#p59953"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc request {n u h c t} {   foreach {bn chan} [split $t] break   if ![isbotnick $bn] return   ...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jan 31, 2006 12:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilouuu]]></name></author>
		<updated>2006-01-30T20:08:32-04:00</updated>

		<published>2006-01-30T20:08:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59941#p59941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59941#p59941"/>
		<title type="html"><![CDATA[modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59941#p59941"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Basic Request script # GNU License # This program is free software; you can redistribute it and/or modify      # it under the terms of the GNU General Public License as published by      # the Free Software Foundation; either version 2 of the License, or          # (at your option) any later version.                                        #                                                                            # This program is distributed in the hope that it will be useful,            # but WITHOUT ANY WARRANTY; without even the implied warranty of            # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              # GNU General Public License for more details.                              #                                                                            # You should have received a copy of the GNU General Public License          # along with this program; if not, write to the Free Software                # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA # /* This is a basic request script, It will join the channel, check some settings and stay/part if accepted. # *  This does NOT add other bots to that channel. # *  If you want it to do that, You will have to make it do that yourself :) # *  If you have any questions about this script, feel free to ask me in #v1per on irc.quakenet.org # *  Also, if you find any bugs, the same channel, my nickname is metroid # *  Also, leave my copyright in, If you want to put your own copyright in MY script, Make your own script completely from scratch. # */ # /* Installing the request script # *  First, put the script into your /home/user/*eggdrop name*/scripts folder. # *  Then at the end of your eggdrop.conf, Put: # *  source scripts/request.tcl # *  Just rehash the bot after you've done this and it should work. # */ # /* This is a VERY basic idea of what you can use for a request system with eggdrops. # *  It's very flexible as it's really easy to just add whatever you want to it :) # *  Good luck with making your own request script and if you need some help, you can contact me. # */ namespace eval request {  variable version "1.0"  variable author  "metroid"    # Configuration!  # Our homechannel, they can only request here.  variable homechan "#v1per"  # Ammount of people we require.  variable needed   "30"  # Do we want a Q or L?  variable service  "1"    # Do we send a message to the homechannel when a request fails?  variable tell     "1"    # End of Config!  # Do NOT edit anything below these lines    variable busy     "0"    bind PUB  -|-  !request  [namespace current]::request } proc request::request {nickname hostname handle channel arguments} {  if {[string equal -nocase $channel $request::homechan]} {   if {!$request::busy} {    set chan [lindex [split $arguments] 0]    if {$chan != "" &amp;&amp; ![validchan $chan]} {     if {[string index $chan 0] == "#"} {      set request::busy 1     bind RAW -|- 315 [namespace current]::who     utimer 30 [list [namespace current]::timeout $chan]     channel add $chan     set ::info "$nickname $chan"    } else {     putquick "NOTICE $nickname :A channel name starts with an #."    }    } else {     putquick "NOTICE $nickname :You seem to have given an improper syntax for the channel."    }   } else {    putquick "NOTICE $nickname :Sorry, there is already a request in progress."   }  } } proc request::who {server raw arguments} { unbind RAW -|- 315 [namespace current]::who if {$request::busy} {  if {![info exists ::info]} { return 0 }  set nickname [lindex [split $::info] 0]  set channel [lindex [split $::info] 1]  unset ::info  set request::busy 0  if {![onchan $nickname $channel] || ![isop $nickname $channel]} {   putquick "NOTICE $nickname :You are not on $channel or you aren't opped."   if {$request::tell} {    putquick "PRIVMSG $request::homechan :Request for $channel failed. $nickname is not on $channel or is not opped."   }   channel remove $channel   return 0  }  if {$request::service} {    if {![onchan L $channel] &amp;&amp; ![onchan Q $channel]} {     set busy 0     putquick "NOTICE $nickname :Q or L was not found on $channel."     if {$request::tell} {      putserv "PRIVMSG $request::homechan :Request for $channel failed. There is no Q or L on $channel."     }     channel remove $channel     return 0    }   }   if {[llength [chanlist $channel]] &lt; $request::needed} {     putquick "NOTICE $nickname :$channel has less than $request::needed users."     if {$request::tell} {      putserv "PRIVMSG $request::homechan :Request for $channel failed. There are not enough users on $channel (There are [llength [chanlist $channel]] users)."     }     channel remove $channel     return 0   }   # Request is accepted   putquick "NOTICE $nickname :Your request is accepted. I will stay on $channel."   putquick "PRIVMSG $request::home :Request from $nickname for $channel was accepted. The channel has [llength [chanlist $channel]] users."   if {![validuser [nick2hand $nickname]]} {    adduser $nickname *![getchanhost $nickname]    chattr $nickname |+n $channel   } else {    chattr [nick2hand $nickname] |+n $channel   }  } }   proc request::timeout {chan} {  if {[validchan $chan] &amp;&amp; ![botonchan $chan]} {   channel remove $chan   putquick "PRIVMSG $request::homechan :Request for $chan failed. Bot cannot join $chan."   if {[info exists ::info]} { unset ::info }  } } proc request::version {} {  putlog "Basic Request script version: $request::version by $request::author was loaded successfully." }     request::version</code></pre></div><br>Hi it possible to change the request cmd !request #chan By !request &lt;nickbot&gt; #chan<br><br>expl: <br><br>set botnicks "botnick1 botnick2 botnick3 etc etc etc"<br><br>!request botnick1 #chan<br>!request botnick2 #chan<br><br>Thx and copyright respected just modif.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7153">pilouuu</a> — Mon Jan 30, 2006 8:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
