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

	<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>2009-06-21T17:59:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LB_1981]]></name></author>
		<updated>2009-06-21T17:59:55-04:00</updated>

		<published>2009-06-21T17:59:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89273#p89273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89273#p89273"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89273#p89273"><![CDATA[
Sorry to bother again my bot has global flags but its only doing the tempshun to ppl that join the server its on is their anyway for it to beable to tempshun users than join on either server<br>irc.chattersworld.co.uk - leaf.chattersworld.co.uk<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10704">LB_1981</a> — Sun Jun 21, 2009 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LB_1981]]></name></author>
		<updated>2009-06-19T18:27:24-04:00</updated>

		<published>2009-06-19T18:27:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89262#p89262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89262#p89262"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89262#p89262"><![CDATA[
Thanks speechless that works a treat now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10704">LB_1981</a> — Fri Jun 19, 2009 6:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-06-19T17:46:11-04:00</updated>

		<published>2009-06-19T17:46:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89261#p89261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89261#p89261"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89261#p89261"><![CDATA[
<blockquote class="uncited"><div>Only other problem im getting is when i rehash the bot this happens<br><br>_-11:13am-_ &lt;ChanGuardian&gt; [05:13] Tcl error in file 'eggdrop.conf':<br>_-11:13am-_ &lt;ChanGuardian&gt; [05:13] can not find channel named "shunlist.txt"<br>_-11:13am-_ &lt;ChanGuardian&gt;     while executing<br>_-11:13am-_ &lt;ChanGuardian&gt; "read $shunned"<br>_-11:13am-_ &lt;ChanGuardian&gt;     invoked from within<br>_-11:13am-_ &lt;ChanGuardian&gt; "if {![file exists $shunned]} { <br>_-11:13am-_ &lt;ChanGuardian&gt;   # no create a blank one to start with <br>_-11:13am-_ &lt;ChanGuardian&gt;   set shunfile [open $shunned w] <br>_-11:13am-_ &lt;ChanGuardian&gt;   # blank our memory to match <br>_-11:13am-_ &lt;ChanGuardian&gt;   set akilll..."<br>_-11:13am-_ &lt;ChanGuardian&gt;     (file "scripts/autoshun.tcl" line 31)<br>_-11:13am-_ &lt;ChanGuardian&gt;     invoked from within<br>_-11:13am-_ &lt;ChanGuardian&gt; "source scripts/autoshun.tcl"<br>_-11:13am-_ &lt;ChanGuardian&gt;     (file "eggdrop.conf" line 1365)<br>_-11:13am-_ &lt;ChanGuardian&gt; [05:13] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br><br>I have to delete the shunlist.txt then restart the bot for it to work<br>get this also when a user disconnects from server <br>_-11:27am-_ &lt;ChanGuardian&gt; [05:27] Tcl error [client:connect]: invoked "break" outside of a loop<br>also when the user disconnects they seem to be removed from the shunlist so when they rejoin the server they dont get shunned apart from that all is ok<br><br>also if possible could the bot message #cwstats nick has been autotempshun undesirable user detected</div></blockquote>Yep, there were some lingering issues remaining to be corrected. After all this was written entirely in notepad with no testing on my behalf what so ever so this was bound to happen. Also added your echo messages to a channel. The bot will echo all autotempshuns, additions, and removals to your echo channel. This should be the final changes and everything should work as promised. Thanks for testing it, now enjoy it working.. heh <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Jun 19, 2009 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LB_1981]]></name></author>
		<updated>2009-06-19T06:17:58-04:00</updated>

		<published>2009-06-19T06:17:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89251#p89251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89251#p89251"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89251#p89251"><![CDATA[
Only other problem im getting is when i rehash the bot this happens<br><br>_-11:13am-_ &lt;ChanGuardian&gt; [05:13] Tcl error in file 'eggdrop.conf':<br>_-11:13am-_ &lt;ChanGuardian&gt; [05:13] can not find channel named "shunlist.txt"<br>_-11:13am-_ &lt;ChanGuardian&gt;     while executing<br>_-11:13am-_ &lt;ChanGuardian&gt; "read $shunned"<br>_-11:13am-_ &lt;ChanGuardian&gt;     invoked from within<br>_-11:13am-_ &lt;ChanGuardian&gt; "if {![file exists $shunned]} { <br>_-11:13am-_ &lt;ChanGuardian&gt;   # no create a blank one to start with <br>_-11:13am-_ &lt;ChanGuardian&gt;   set shunfile [open $shunned w] <br>_-11:13am-_ &lt;ChanGuardian&gt;   # blank our memory to match <br>_-11:13am-_ &lt;ChanGuardian&gt;   set akilll..."<br>_-11:13am-_ &lt;ChanGuardian&gt;     (file "scripts/autoshun.tcl" line 31)<br>_-11:13am-_ &lt;ChanGuardian&gt;     invoked from within<br>_-11:13am-_ &lt;ChanGuardian&gt; "source scripts/autoshun.tcl"<br>_-11:13am-_ &lt;ChanGuardian&gt;     (file "eggdrop.conf" line 1365)<br>_-11:13am-_ &lt;ChanGuardian&gt; [05:13] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br><br>I have to delete the shunlist.txt then restart the bot for it to work<br>get this also when a user disconnects from server <br>_-11:27am-_ &lt;ChanGuardian&gt; [05:27] Tcl error [client:connect]: invoked "break" outside of a loop<br>also when the user disconnects they seem to be removed from the shunlist so when they rejoin the server they dont get shunned apart from that all is ok<br><br>also if possible could the bot message #cwstats nick has been autotempshun undesirable user detected<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10704">LB_1981</a> — Fri Jun 19, 2009 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-06-19T05:28:51-04:00</updated>

		<published>2009-06-19T05:28:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89249#p89249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89249#p89249"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89249#p89249"><![CDATA[
<blockquote class="uncited"><div>im getting this error on the bots partyline when a user connects<br><br>_-9:35am-_ &lt;ChanGuardian&gt; [03:35] Tcl error [client:connect]: can't read "::akilllist": no such variable</div></blockquote>Doh... Corrected that mistake in the script above.. Try it again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Jun 19, 2009 5:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LB_1981]]></name></author>
		<updated>2009-06-19T04:38:17-04:00</updated>

		<published>2009-06-19T04:38:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89248#p89248</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89248#p89248"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89248#p89248"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Many thanks for your reply and help the nicks are being added to the list but are not being tempshunned on connect i just need it to tempshun not akill</div></blockquote>That is because I messed up on the regsub, which changes the %nick in your akillcommand line into the correct nickname. I've corrected it in the script above so using it now will work and tempshun that user.<br><br>Don't mistake the word "akillist" to mean it's going to akill them. This is merely a variable name. The action taken will be the command you put into akillcommand. As you notice, the exact command you gave is what is presently there. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"></div></blockquote><br>im getting this error on the bots partyline when a user connects<br><br>_-9:35am-_ &lt;ChanGuardian&gt; [03:35] Tcl error [client:connect]: can't read "::akilllist": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10704">LB_1981</a> — Fri Jun 19, 2009 4:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-06-18T21:18:45-04:00</updated>

		<published>2009-06-18T21:18:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89246#p89246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89246#p89246"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89246#p89246"><![CDATA[
<blockquote class="uncited"><div>Many thanks for your reply and help the nicks are being added to the list but are not being tempshunned on connect i just need it to tempshun not akill</div></blockquote>That is because I messed up on the regsub, which changes the %nick in your akillcommand line into the correct nickname. I've corrected it in the script above so using it now will work and tempshun that user.<br><br>Don't mistake the word "akillist" to mean it's going to akill them. This is merely a variable name. The action taken will be the command you put into akillcommand. As you notice, the exact command you gave is what is presently there. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jun 18, 2009 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LB_1981]]></name></author>
		<updated>2009-06-18T21:12:08-04:00</updated>

		<published>2009-06-18T21:12:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89245#p89245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89245#p89245"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89245#p89245"><![CDATA[
Many thanks for your reply and help the nicks are being added to the list but are not being tempshunned on connect i just need it to tempshun not akill<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10704">LB_1981</a> — Thu Jun 18, 2009 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-06-19T19:07:40-04:00</updated>

		<published>2009-06-18T18:12:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89242#p89242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89242#p89242"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89242#p89242"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Shun fun v1.0 by speechles# egghelp.org version... yay!# if you like this script donate to slennox :P## SETTINGS BEGIN# change this to where the file should be created# which will keep a backup of the contents kept in# memory, so you can rehash, restart, die# and everything stored will be loaded back into# memory.# ---variable shunned "shunlist.txt"# what should be sent to the server when a user# is detected within your shunned list?# %nick will be replaced with the nickname of the# shunned user.# ---variable akillcommand "TEMPSHUN %nick :Auto Tempshun undesirable user detected"# what channel should new shun additions/removals# be echoed to? change this to "" if you dont want# to echo to a channel.# ---variable shunechochan "#cwstats"# -------------------------------------------------------------------# keep in mind ONLY masters/owners may add, remove or list the# shunned nicks. change the binds below from mn|mn to what you# wish them to be if this doesn't float your boat. It also works via# private message with the bot, and bot replies in notices.# !addshun !delshun !listshun are your commands available.# -------------------------------------------------------------------## SCRIPT BEGINS# does our memory backup file exist?if {![file exists $shunned]} {  # no create a blank one to start with  set shunfile [open $shunned w]  # blank our memory to match  set akilllist [list]  close $shunfile} else {  # yes, open the backup and read it into memory  set shunfile [open $shunned r]  set akilllist [split [read $shunfile] "\n"]   close $shunfile}# bindsbind raw - NOTICE client:connectbind msg mn|mn !addshun client:shunbind msg mn|mn !delshun client:deshunbind msg mn|mn !listshun client:listshun# connecting usersproc client:connect {from keyword text} {  # is the message the one we want?  if {[string match -nocase "*Client connecting on port*" $text]} {    # acquire the nickname    set usernick [string tolower [lindex [split $text] 9]]    # is this nickname to be akilled?    if {[lsearch -exact $::akilllist $usernick] != -1} {      # yes, correct the placeholder in akillcommand      regsub "%nick" $::akillcommand $usernick akill      # issue the akill      putserv "$akill"      if {[string length $::shunechochan]} {        putserv "privmsg $::shunechochan :$usernick has been autotempshunned - undesirable user detected."      }    }  }}# add shunproc client:shun {nick uhost hand text} {  if {![string length [set shun [string tolower [lindex [split $text] 0]]]]} {    putserv "notice $nick :Please supply a nickname to shun."    return  }  # append nickname to backup file  set shunfile [open $::shunned a]  puts $shunfile $shun  close $shunfile  # add the nickname to memory  lappend ::akilllist $shun  # report success  putserv "notice $nick :$shun was successfully added."  if {[string length $::shunechochan]} {    putserv "privmsg $::shunechochan :$nick has added $shun to the shun list."  }}# remove shunproc client:deshun {nick uhost hand text} {  if {![string length [set shun [string tolower [lindex [split $text] 0]]]]} {    putserv "notice $nick :Please supply a nickname to unshun."    return  }  # is the nick even in memory?  if {[set pos [lsearch -exact $::akilllist $shun]] != -1} {    # yes, remove it from memory    set ::akilllist [lreplace $::akilllist $pos $pos]    # write new backup file    open shunfile [open $::shunned w]    foreach nick $::akilllist {      puts $shunfile $nick    }    close $shunfile    # report success    putserv "notice $nick :$shun was successfully removed."    if {[string length $::shunechochan]} {      putserv "privmsg $::shunechochan :$nick has removed $shun from the shun list."    }  } else {    # no, the nickname isn't in our list.    putserv "notice $nick :$shun is not in the list. Use !listshun to see the list."    if {[string length $::shunechochan]} {      putserv "privmsg $::shunechochan :$nick attempted to remove $shun from the shun list but $shun is not in the shun list. "    }  }}# list shunproc client:listshun {nick uhost hand text} {  # build a header for our list response.  putserv "notice $nick :Shunlist is as follows:"  # recurse through the nicknames 10 per line and spam them.  for {set n 0} {$n&lt;[expr {[llength $::akilllist] +1}]} {incr n 10} {    putserv "notice $nick :[join [lrange $::akilllist $n [expr {$n + 9}]] ", "]"  }}</code></pre></div>Untested, written in notepad... might be slight syntax or other errors, this should get you going in the right direction..  Enjoy the comments as well, knowing how it works helps understanding... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>Edit: Corrected all remaining issues, enjoy the script... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jun 18, 2009 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LB_1981]]></name></author>
		<updated>2009-06-18T10:37:11-04:00</updated>

		<published>2009-06-18T10:37:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89240#p89240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89240#p89240"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89240#p89240"><![CDATA[
i picked this up from the forum didnt write it myself<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10704">LB_1981</a> — Thu Jun 18, 2009 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-06-18T10:26:35-04:00</updated>

		<published>2009-06-18T10:26:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89239#p89239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89239#p89239"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89239#p89239"><![CDATA[
I see the efforts by Sir_Fz (in your previous thread) in trying to dissuade you from using the word 'args' in this manner fell on deaf ears.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Thu Jun 18, 2009 10:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LB_1981]]></name></author>
		<updated>2009-06-18T09:16:02-04:00</updated>

		<published>2009-06-18T09:16:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89238#p89238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89238#p89238"/>
		<title type="html"><![CDATA[auto tempshun]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89238#p89238"><![CDATA[
Can any one help modify this i want it to auto tempshun users that have been added also if poss it will need something like botnick addtempshun nickname so i dont have to go into shells to add nicks<br><div class="codebox"><p>Code: </p><pre><code>set akillnicks {   "nick1"   "nick2"   "nick3"   "etc." } bind raw - NOTICE client:connect proc client:connect {from keyword args} {   global akillnicks   if {[string match "*Client connecting on port*" $args]} {     set usernick [lindex [split $args] 9]     foreach nick $akillnicks {       if {[string equal -nocase $nick $usernick]} {         # your akill thing here         break       }     }   } } </code></pre></div>iv slightly changed it myself <br><div class="codebox"><p>Code: </p><pre><code>set tempnicks { "nickt" } bind raw - NOTICE client:connect proc client:connect {from keyword args} { global tempshunnicks if {[string match "*Client connecting on port*" $args]} { set usernick [lindex [split $args] 9] foreach nick $tempshunnicks { if {[string equal -nocase $nick $usernick]} { putserv "TEMPSHUN $nick :Auto Tempshun undesirable user detected"} } } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10704">LB_1981</a> — Thu Jun 18, 2009 9:16 am</p><hr />
]]></content>
	</entry>
	</feed>
