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

	<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>2004-05-12T04:57:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stoo]]></name></author>
		<updated>2004-05-12T04:57:11-04:00</updated>

		<published>2004-05-12T04:57:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36292#p36292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36292#p36292"/>
		<title type="html"><![CDATA[Request Bot. Doesnt work correctly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36292#p36292"><![CDATA[
This script i am writing needs to join the channel specified with this<br><br>!request #chan<br><br>Then the bot join that channel, checks if that user who requested is an op, checks for Q or L in the channel and if there is over 40 users.<br><br>However, when the bot joins the channel it says there is no Q or L and there is only 1 user.<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o !request request:requestproc request:request {nick host handle chan text} {global req_nick req_chanset req_chan $textset req_nick $nickputquick "PRIVMSG #merc-finder :\002( #merc-finder )-(\002 Request service Inactive for 40 seconds while checking $req_chan \002)\002"channel add $req_chanbind join -|- "$req_chan $::botnick*" checks:checks}proc checks:checks {nick host handle chan} {global req_nick req_chanif {[isop $req_nick $req_chan]} { set isop 1 } { set isop 0 }putquick "PRIVMSG $req_chan : Checking for \002Q\002 or \002L\002 bot..."if {[onchan L $req_chan] || [onchan Q $req_chan]} {set QLcheck 1putquick "PRIVMSG $req_chan :\002Q or L\002 Found ! Requirement Met !"} { set QLcheck 0putquick "PRIVMSG $req_chan :No \002Q or L\002 Found ! Requirement \002NOT\002 Met !"}putquick "PRIVMSG $req_chan : Checking for\002 40 \002or More users ..."set chan_amount [llength [chanlist $req_chan]]if {$chan_amount &gt;= 40} {set chan_amount_check 1putquick "PRIVMSG $req_chan :\002$chan_amount\002 users found ! Requirement Met !"} {set chan_amount_check 0putquick "PRIVMSG $req_chan :\002$chan_amount users found !\002 Requirement \002NOT\002 Met!"}set score [expr $isop+$chan_amount_check+$QLcheck]if {[string match 3 $score]} { putquick "PRIVMSG $req_chan :#merc-finder Requiremnets met! Bringing in a relay."channel remove $req_chanputquick "PART $req_chan :\002( #merc-finder )-( \002Requirements met for $req_chan \002)\002!"putquick "PRIVMSG #merc-finder.staff :!addrelay $req_chan"} {putquick "PRIVMSG $req_chan :#merc-finder Requiremnets NOT met!"channel remove $req_chanputquick "PART $req_chan : #merc-finder Requirements NOT met!"putquick "PRIVMSG #merc-finder :Requirements not met for $req_chan"}}</code></pre></div>i tested and made the bot join #magik^ and got this in my partyline aswell<div class="codebox"><p>Code: </p><pre><code>[mercfinder] [09:45] Tcl error [hnd:join]: illegal channel: #magik^[09:45] -L (TheLBot@lightweight.quakenet.org)- [#MaGiK^] [09:45] Oops. Someone made me join #magik^... leaving...</code></pre></div>Could anyone help me out here.<br><br>Much appriciated <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4497">stoo</a> — Wed May 12, 2004 4:57 am</p><hr />
]]></content>
	</entry>
	</feed>
