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

	<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>2008-08-15T20:09:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spijon]]></name></author>
		<updated>2008-08-15T20:09:31-04:00</updated>

		<published>2008-08-15T20:09:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84614#p84614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84614#p84614"/>
		<title type="html"><![CDATA[[Eggdrop]Check if the bot has +ao @L via !check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84614#p84614"><![CDATA[
Did you finish the script? <br><br>Look for more or less the same but to work on Quakenet.org<br><br>!check-all or auto check<br><br>The bot "jump" the channels its haven't got +a or +o on.<br>And msg chan "give me voice/op or i part" and if not +v or +o after like 10min its parts. And msg the "main" chan with the info.<br><br>Best regards<br>Spijon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8142">spijon</a> — Fri Aug 15, 2008 8:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2008-03-05T08:32:08-04:00</updated>

		<published>2008-03-05T08:32:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81456#p81456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81456#p81456"/>
		<title type="html"><![CDATA[[Eggdrop]Check if the bot has +ao @L via !check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81456#p81456"><![CDATA[
'botisop' does not accept a list of channels (which is what 'channels' returns) and your command starting with "{" makes no sense at all.<br>You'll need a loop to check each channel ('<a href="http://tcl.tk/man/tcl8.4/TclCmd/foreach.htm" class="postlink">foreach</a>' would be the obvious choice, as you're looping through the elements of a list of channel names)<br><br>I suggest you start by learning <a href="http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm" class="postlink">tcl's syntax</a>, then read some other scripts to get an idea about what commands might be useful for you (and check their details in the relevant manual/doc-file)<br><br><a href="http://tcl.tk/man/tcl8.4/TclCmd/contents.htm" class="postlink">Native tcl commands</a><br>eggdrop commands: doc/tcl-commands.doc (in your eggdrop dir)<br><br><br>...or maybe you're looking for the <a href="http://forum.egghelp.org/viewforum.php?f=10" class="postlink">Script Requests</a> forum?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Mar 05, 2008 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raws17]]></name></author>
		<updated>2008-03-05T08:03:31-04:00</updated>

		<published>2008-03-05T08:03:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81455#p81455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81455#p81455"/>
		<title type="html"><![CDATA[[Eggdrop]Check if the bot has +ao @L via !check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81455#p81455"><![CDATA[
Hello,<br><br>i test it but there is an error.<br>I want the bot to check via a command (!check)<br>if he's op in every channel except my main channel.<br>And if hes not OP he should write a message in the chan and part it.<br><br><div class="codebox"><p>Code: </p><pre><code>#BINDSbind Pub n "!checkall" start:checkproc start:check { nickname hostname handle channel arguments } {# Userchannel#set userchannel [lindex $arguments 0]# Main channelset main "##raw"# Checks if we are opped on channel.if {[botisop [channels]]return 0# Wenn nicht --&gt;{if {[info exists chlist]} {lappend chlist $chan} {set chlist [channels]}# checkenputserv "PRIVMSG $userchannel : Kein +ao - Ich leaveputserv "PRIVMSG $main : Habe kein +ao in $userchannel - Raus da!channel remove $userchannel}# prozess beendenreturn 1}# Gives some nice credits :P~putlog "--Just a test--"</code></pre></div>thx alot !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9760">raws17</a> — Wed Mar 05, 2008 8:03 am</p><hr />
]]></content>
	</entry>
	</feed>
