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

	<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-06-02T07:08:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-06-02T07:08:48-04:00</updated>

		<published>2004-06-02T07:08:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36852#p36852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36852#p36852"/>
		<title type="html"><![CDATA[!request problem (doesnt read chanusercount)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36852#p36852"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>############################### Enter the main channel hereset mainchan "#IRCStats"############################# enter your ircnick hereset maintainer "Darth_Unslut"bind pub -|- !request request:requestproc request:request {nick host handle chan text} {global req_nick req_chan mainchan maintainerset req_chan $textset req_nick $nickputquick "PRIVMSG $mainchan :\002( $mainchan )-(\002 Request service Inactive 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_chan mainchan maintainer botnickif {[isop $req_nick $req_chan]} { set isop 1 } else { set isop 0 }putquick "PRIVMSG $req_chan : Checking for\002 1 \002or More users ..."set chan_amount [llength [chanlist $req_chan]]if {$chan_amount &gt;= 20} {putquick "PRIVMSG $req_chan :\002$chan_amount\002 users found ! Requirement Met ! Enjoy my services."set chan_amount_check 1putquick "PRIVMSG $mainchan :\002( $req_chan )$req_chan met the requirements. Tnx for your request. Enjoy"putquick "PRIVMSG $req_chan :$mainchan Requirements met! $botnick will now start logging your channel."putquick "PRIVMSG MEMOSERV :send $maintainer \002( $req_chan : $req_nick )\002 has requested stats and has been aproved."return} else {set chan_amount_check 0putquick "PRIVMSG $req_chan :\002$chan_amount users found !\002 Requirement \002NOT\002 Met!"putquick "PRIVMSG $req_chan :$mainchan Requirements NOT met!"channel remove $req_chanputquick "PART $req_chan :$mainchan  Requirements NOT met!"putquick "PRIVMSG $mainchan :Requirements not met for $req_chan"}return 0}putlog "loaded !request by Darth_Unslut"</code></pre></div>this is the script its poorly coded i know. <br><br>thing is: It doesnt read the channel user count when it joins. what do i need to add to make it do a /names #channel or update the userlist (like IAL for mirc). <br><br>maybe use a raw? and how do i make the !request cmd inactive when its checking for a channel?<br><br>i would also like to know how the eggy could write to a file example eggdrop.conf to add the following line:<br><div class="codebox"><p>Code: </p><pre><code>logfile jpk #ThatNewChannel "logs/channelname.log"</code></pre></div>and then write something in pisg.cfg in another dir.<br><br>&lt;channel="<span style="color:red">#ChannelName</span>"&gt;<br>  Logdir="/home/darth/eggdrop/logs"<br>  LogPrefix ="<span style="color:red">channelname</span>"<br>  Format="eggdrop"<br>  Maintainer="Darth_Unslut"<br>  Network="Exhile.net"<br>  Outputfile="<span style="color:red">channelname.html</span>"<br> &lt;/channel&gt;<br><br>the whole idea of this is to automate the channel adding process and adding the channel to the Pisg config file.<br><br>i know the code is fubar lil bit of help plz <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=3637">dotslasher</a> — Wed Jun 02, 2004 7:08 am</p><hr />
]]></content>
	</entry>
	</feed>
