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

	<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-10-31T15:36:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[lenooxx]]></name></author>
		<updated>2009-10-31T15:36:21-04:00</updated>

		<published>2009-10-31T15:36:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90717#p90717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90717#p90717"/>
		<title type="html"><![CDATA[heya]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90717#p90717"><![CDATA[
i tried this script and i get this <br><br> Tcl error [wright:pub:wright]: random limit must be greater than zero<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10564">lenooxx</a> — Sat Oct 31, 2009 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thanhas]]></name></author>
		<updated>2009-10-19T01:04:34-04:00</updated>

		<published>2009-10-19T01:04:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90564#p90564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90564#p90564"/>
		<title type="html"><![CDATA[Auto Picks Quote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90564#p90564"><![CDATA[
Hello,<br><br>in this Script all i need to Avoid !wright system it should say random Quote in x minutes and partyline .chanset * +Quote so please edit this code i did alot of emails to the Author but no replay so now i am here.<br>to mention agian<br>1 = Auto Display random Quotes from wright.txt in <strong class="text-strong">x minutes</strong><br>2 = Works  on .chanset #chan +Quote<br>3 = Remove !wright system<br><br>Thanks in advance,<br><br><br><div class="codebox"><p>Code: </p><pre><code># Wrightie script by Flash___, based on Steinsky's quote script.# ircflash@digdilem.org - #3am at irc.quakenet.org - Flash____## Steven Wright is the weird-looking American comic who's so off the wall he's # on a completely different wall. The guy's a genius, I love his stuff!## Adds channel commands: !wright# This picks a line at random from a plain ascii file (one quote per line) and# puts it in the same channel !wright was called from. Would be trivial to change# for any other set of random quotes. Just change the bind and the quotes...## To install: Place this .tcl and wright.txt into the scripts/ dir of your eggdrop# and add the line to your eggdrop.conf file:## source scripts/wright.tcl## .rehash or reload your bot and job's done.# Where are the wrights ganna be kept? (Relative or absolute path to ascii file)set wrightfile scripts/wright.txt# 0 = display wrights in channel# 1 = display wrights via private notice.set wrightvianotice 0#------- Nothing else needs to be twiddled with --------if { ![info exists toolbox_loaded] } { source scripts/alltools.tcl }# Change !wright to something else if you need a different triggerbind pub - !wright wright:pub:wrightproc wright:pub:wright {nick uhost hand chan arg} { global wrightfile wrightvianotice set wrights "" if { [file exists $wrightfile] } { set file [open $wrightfile r]  } else {  if { $wrightvianotice == 0 } { putmsg $chan "$wrightfile does not exist. You'll need to add wrights to the database first by typing \002!addwright &lt;a wright&gt;\002" }  if { $wrightvianotice == 1 } { putnotc $nick "$wrightfile does not exist. You'll need to add wrights to the database first by typing \002!addwright &lt;a wright&gt;\002" }  return 0 } while { ![eof $file] } {  set wright [gets $file]  if { $wright != "" } {   set wrights [linsert $wrights end $wright]  } } close $file if { $arg != "" } {  set pattern [string tolower $arg]  set awrights ""  set wright ""  foreach wright $wrights {   set lowwright [string tolower $wright]   if { [string match $pattern $lowwright] } {    set awrights [linsert $awrights end $wright]   }   set wrights ""   set wrights $awrights  } } set row [rand [llength $wrights]] if { [expr $row &gt;= 0] &amp;&amp; [expr $row &lt; [llength $wrights]] } {  set wright [lindex $wrights $row] } if { $wright != "" } {  if { $wrightvianotice == 0 } {   putmsg $chan "Wrightism: $wright"  }  if { $wrightvianotice == 1 } {   putnotc $nick "$wright"  } } return 1}putlog "Wright.tcl By Flash____ running. !wright to invoke."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8161">Thanhas</a> — Mon Oct 19, 2009 1:04 am</p><hr />
]]></content>
	</entry>
	</feed>
