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

	<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>2007-11-21T06:24:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ch3mi0n]]></name></author>
		<updated>2007-11-21T06:24:40-04:00</updated>

		<published>2007-11-21T06:24:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78589#p78589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78589#p78589"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78589#p78589"><![CDATA[
egg-fu is not unsupported, and I (the programmer of egg-fu) am not unreachable.<br><br>If you are having problems with egg-fu, use the help methods provided on the egg-fu project page found on sourceforge.net<br><br>egg-fu works perfectly fine as described in the help file included with the software, provided you follow the instructions and also are not trying to run it on WINDROP as warned against many times (also in the help file included with the software).<br><br>Now, if anyone has any support questions for me, refer to the above as I probably won't respond to you here.<br><br>Oh yeah, and... RTFM.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9483">ch3mi0n</a> — Wed Nov 21, 2007 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-27T09:10:38-04:00</updated>

		<published>2007-10-27T09:10:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77180#p77180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77180#p77180"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77180#p77180"><![CDATA[
Think you'd understand by now, that as soon as we patch one hole, we discover another one, and another, and another...<br><br>There are issues with strings&lt;-&gt;lists all over the place, aswell as all other kinds of issues.<br><br>So, simply put, there's alot more than 1 single error..<br>The author is apparently not maintaining the script anymore, you've been recommended a replacement, I'm dropping this thread as of now...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Oct 27, 2007 9:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PoHuIsT]]></name></author>
		<updated>2007-10-27T05:26:47-04:00</updated>

		<published>2007-10-27T05:26:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77176#p77176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77176#p77176"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77176#p77176"><![CDATA[
here iz my script code maybe i do samthing wrong ?:)<div class="codebox"><p>Code: </p><pre><code>#eggdrop1.6 +/-#                              ___                             #   .-----..-----..-----. __ .'  _|.--.--.#   |  -__||  _  ||  _  ||__||  ._||  |  |#   |_____||___  ||___  |    |__|  |_____|#          |_____||_____|#                              version 2.0.11###                              Copyright (C) 2002-2003, Kevin Lanni#                              ch3mi0n@users.sourceforge.net#                              irc.easynews.com#ch3mpo (EFnet)## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU# General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software Foundation,# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA## Version Information (Major Additions and Bug Fixes!) can be found in the# Version.txt included in the package.## Feature explanations, instructions, and HELP can be found in# How-to.txt included in the package.##  ** THIS PROGRAM IS NOT INTENDED FOR USE IN WINDROP AND YOU WILL **#  ** NOT RECIEVE SUPPORT IF YOU ATTEMPT TO RUN EGG-FU IN WINDROP  **#  ** BECAUSE I CAN TELL YOU RIGHT NOW IT DOES NOT WORK!           **#  **   AND THIS GOES FOR ALL WINDOWS IMPLEMENTATIONS OF EGGDROP   **############################################################################ If you use the following code in any form partial or modifed, at least ## give the programmer who did this much hard work his deserved credit!   ############################################################################# Greets:# Tigrrr, psykoz, dilvie, yo momma, mickrip, poke, #trax@efnet# DemonSeed, lobywang, scrap, d0oGs, paco, tls,# one_, sunrpc, ^PLAID^, Tenebrous, Byte, #arizona@unet# and various other freaks and geeks, you all know who you are ## Special thanks to all my beta testers (this means you)# Especially psykoz for being such a huge pain in my ass and consistantly nudging me to work on egg-fu :D## Email your suggestions/questions/comments/bitches to:# ch3mi0n@users.sourceforge.net - NO WINDOWS SUPPORT!###########################################################################set eggfu(path,cfg) "scripts/";#set this to the location of your config files (advanced users)####################################################### Don't need to touch anything below this line ####$##################################################### functionsproc low {i} {return [string tolower $i]}proc bit {} {global eggfu;if {$eggfu(it)=="-no-"} {return ""} {return $eggfu(it)}}proc botsnick {} {global botnick;return $botnick}proc trim {i} {return [string trim $i]}proc wordcount {} {}proc readrand {source} {set sf [open $source r]while {![eof $sf]} {set stdin [trim [gets $sf]]if {![regexp #.* $stdin] &amp;&amp; $stdin != ""} {lappend readlist $stdin}}return $readlist}proc loadrand {} {global eggfu randarrayforeach i $eggfu(randset) {set randarray($i) [trim [readrand $eggfu(path)/$i.txt]]}}proc grabrand {type} {global randarrayreturn [lindex $randarray($type) [rand [llength $randarray($type)]]]}proc saverand {} {global eggfuforeach i $eggfu(randset) {set file [open $i.txt w]foreach n $i {puts $file $n}}}proc loadcfg {path} {global eggfu grammarforeach cfg {eggfu grammar} {set cf [open $path$cfg.cfg r]while {![eof $cf]} {set stdin [string trim [gets $cf]]if {![regexp #.* $stdin] &amp;&amp; $stdin != ""} {set ${cfg}([trim [lindex [split $stdin :] 0]]) [trim [lindex [split $stdin :] 1]]}}}}proc savecfg {} {global eggfu grammarforeach cfg {eggfu grammar} {set cf [open $cfg.cfg w]set a [array startsearch $cfg]for {set i 0} {$i&lt;[array size $cfg} {incr i} {set element [array nextitem $cfg $a]#Unfinished broken code}}}proc fixgrammar {text} {global eggfu grammar#Unfinished unbroken codeset text "@ $text @"regsub -all -nocase " better then " $text " better than " textreturn [string trim [lrange $text 1 [expr [llength $text] - 2]]]}proc isfrozen {arg} {set i 0set text [getword $arg]set apos [lsearch -exact $text "=&gt;"]set text [lrange $text [expr $apos + 1] e]if {[lindex $text 0] == "!"} {set i 1}if {[lindex $text 0] == "~"} {set i 1}return $i}proc isinop {arg} {set i 0foreach a {&lt;reply&gt; &lt;action&gt; &lt;ctcp&gt; &lt;notice&gt;} {if {$arg==$a} {set i 1}}return $i}proc alterit {nick host hand chan text} {regsub -all "[botsnick], " $text "" textregsub -all " s/" $text " " textregsub -all "/" $text " / " textset fseperator [lsearch -exact $text "=~"]set seperator [lsearch -exact $text "/"]set alterstring [lrange $text 0 [expr $fseperator -1]]set alterwhat [lrange $text 2 [expr $seperator -1]]set alterwith [lrange $text [expr $seperator +1] e]regsub -all " /" $alterwith "" alterwithset question [lrange [getword $alterstring] 1 e]set searchforwhat [lsearch -exact $question $alterwhat]if {[isfrozen $alterstring]} {putnotc $nick "'$alterstring' has been frozen."} elseif {$question == ""} {putnotc $nick "No variable set!"} elseif {$searchforwhat == "-1"} {putnotc $nick "'$alterwhat' not in '$alterstring'!"} {regsub -all $alterwhat $question $alterwith resultdelword $alterstringaddword $alterstring $resultputlog "!egg-fu! Alter: '$question' is now: $result"putnotc $nick "'$alterstring' is altered."}}proc freezeit {nick host hand chan text} {regsub -all "[botsnick], " $text "" textset wpos [lsearch -exact $text "freeze"]set what [lrange $text [expr $wpos + 1] e]set text [getword $what]set apos [lsearch -exact $text "=&gt;"]set text [lrange $text [expr $apos + 1] e]if {[isfrozen $what]} {putnotc $nick "'$what' has already been frozen."} elseif {$what != ""} {putlog "!egg-fu! Freezing '$what'"delword $whataddword $what "! $text"putnotc $nick "'$what' is now frozen."} {putnotc $nick "Freeze what?"}}proc thawit {nick host hand chan text} {set wpos [lsearch -exact $text "thaw"]set what [lrange $text [expr $wpos + 1] e]set text [getword $what]set apos [lsearch -exact $text "=&gt;"]set text [lrange $text [expr $apos + 1] e]if {![isfrozen $what]} {putnotc $nick "'$what' isn't frozen."} elseif {$what != ""} {putlog "!egg-fu! Thawing '$what'"delword $whataddword $what [lrange $text 1 e]putnotc $nick "'$what' is now unfrozen."} {putnotc $nick "Thaw what?"}}proc lockit {nick host hand chan text} {regsub -all "[botsnick], " $text "" textset wpos [lsearch -exact $text "lock"]set what [lrange $text [expr $wpos + 1] e]if {[isfrozen $what]} {putnotc $nick "'$what' has been frozen."} elseif {$what != ""} {putlog "!egg-fu! Locking '$what'"delword $whataddword $what "~"putnotc $nick "'$what' is now locked."} {putnotc $nick "Lock what?"}}proc unlockit {nick host hand chan text} {regsub -all "[botsnick], " $text "" textset wpos [lsearch -exact $text "unlock"]set what [lrange $text [expr $wpos + 1] e]set text [lindex [getword $what] e]if {$text == "~" &amp;&amp; $what != ""} {delword $whatputlog "!egg-fu! Unlocked '$what'"putnotc $nick "'$what' is now unlocked."} {putnotc $nick "Unlock what?"}}proc forgetit {nick host hand chan text} {set wpos [lsearch -exact $text "forget"]set what [lrange $text [expr $wpos + 1] e]set text [lrange [getword $what] 1 e]if {[isfrozen $what]} {putnotc $nick "'$what' has been frozen."} elseif {$text == ""} {putnotc $nick "'$what' not found."} elseif {$what != "" &amp;&amp; [llength $what] &lt; 3} {delword $whatputnotc $nick "'$what' forgotten."} {putnotc $nick "Forget what?"}}proc karma_info {nick host hand chan text} {set karma_action [lindex $text 0]regsub -all "\\\?" $text "" textset karma [lindex $text 1]if {$karma == "me"} {set karma $nick} elseif {$karma == ""} {putnotc $nick "You have not entered a karma option (karma for/set/reset)"} elseif {$karma_action == "for"} {set answer [lrange [getword "&lt;karma&gt; $karma"] 1 e]if {$answer == "" || $answer == "0"} {putchan $chan "$karma has neutral karma"} {putchan $chan "$karma has karma of $answer"}} elseif {$karma_action == "set"} {set karma_setas [lindex $text 2]if {$karma == $nick} {putnotc $nick "Please don't karma yourself."} elseif {$karma_setas != ""} {putlog "!egg-fu! Karma: $karma been changed to $karma_setas"delword "&lt;karma&gt; $karma"addword "&lt;karma&gt; $karma" $karma_setasputchan $chan "$karma has now been set to $karma_setas"} {putnotc $nick "You have not entered a set value! (karma set &lt;karma&gt; &lt;new value&gt;)"}} elseif {$karma_action == "reset"} {if {$karma == $nick} {putnotc $nick "Please don't karma yourself."} else {delword "&lt;karma&gt; $karma"addword "&lt;karma&gt; $karma" ""putchan $chan "$karma has been reset"}}}proc karma_action {nick host hand chan text} {regsub -all "\\\+\\\+" $text " \+\+" textregsub -all "\\\-\\\-" $text " \-\-" textset karma [lindex $text 0]set question [lrange [getword "&lt;karma&gt; $karma"] 1 e]if {$karma == "me"} {set karma $nick}if {$question == ""} {addword "&lt;karma&gt; $karma" 1putlog "!egg-fu! Karma: $karma set to 1"} elseif {[low $karma] == [low $nick]} {putnotc $nick "You cannot give yourself karma."} else {if {[lsearch -exact $text "\+\+"] == -1} {incr question -1} {incr question 1}delword "&lt;karma&gt; $karma"addword "&lt;karma&gt; $karma" $questionputlog "!egg-fu! Karma: $karma set to $question"}}proc addword {keyword answer} {global eggfuif {$eggfu(mdirect)} {set fword [lindex $keyword 0]if {[string match *:* $fword]} { if {[llength $keyword]&gt;1} {set keyword [lrange $keyword 1 e]} {regsub -all ":" $keyword "" keyword}}}# fix the 'mysterious disappearances' bugset feeler [lrange [getword $keyword] 1 e]if {$keyword != $feeler &amp;&amp; ![isfrozen $keyword]} {set put "$keyword =&gt; $answer"regsub -all "\\{" $put "" putregsub -all "\\}" $put "" putset fh [open $eggfu(brain) a]puts $fh $putclose $fhputlog "!egg-fu! Learn: $keyword =&gt; $answer"}}proc getword {keyword} {global eggfuset foundone 0set returnit {}set fh [open $eggfu(brain) r]while {![eof $fh]} {set stdin [string trim [gets $fh]]if {[eof $fh]} {break}set breaker [lsearch -exact $stdin "=&gt;"]set getkey [low [lrange $stdin 0 [expr $breaker - 1]]]set getresult [low [lrange $stdin [expr $breaker + 1] e]]if {[string match -nocase "* $getkey *" "@ $keyword @"] || [string match -nocase "* $keyword *" "@ $getkey @"]} {set returnit $stdin;set foundone 1if {[rand 4]==1} {break}}}close $fhif {$foundone} {return [string trim $returnit]}}proc delword {keyword} {global eggfuset fh [open $eggfu(brain) r]set return {}set del 0while {![eof $fh]} {set stdin [string trim [gets $fh]]set breaker [lsearch -exact $stdin "=&gt;"]set getkey [low [lrange $stdin 0 [expr $breaker - 1]]]if {[eof $fh]} {break}if {![string match -nocase "* $keyword *" " $getkey "]} {lappend return $stdin} {incr del 1}}close $fhset fh [open $eggfu(brain) w]foreach a $return {puts $fh $a}close $fhreturn $del}proc anynick {chan} { set apb [botsnick]while {$apb == [botsnick]} {if {$apb != [botsnick]} {break}set apb [lindex [split [chanlist $chan]] [rand [llength [split [chanlist $chan]]]]]}return $apb}proc anyrandq {text} {regsub -all "\\| " $text "\t" textset randq [lindex [split $text \t] [rand [llength [split $text \t]]]]return $randq}proc randomize {q n c} {set israndom [lsearch -exact $q "|"]if {$israndom!=-1} {set q [anyrandq $q]}# i plan on adding other $options in the futureregsub -all \\\$date $q [ctime [unixtime]] qregsub -all \\\$month $q [grabrand months] qregsub -all \\\$day $q [grabrand days] qregsub -all \\\$animal $q [grabrand animals] qregsub -all \\\$nick $q [anynick $c] qregsub -all \\\$noun $q [grabrand nouns] qregsub -all \\\$adj $q [grabrand adjectives] qregsub -all \\\$adjective $q [grabrand adjectives] qregsub -all \\\$birthday $q [happybday] qregsub -all \\\$age $q [myage] qregsub -all \\\$sex $q [mysex] q# regsub -all \\\{ $q "" q# regsub -all \\\} $q "" qreturn [string trim $q]}proc mysex {} {global eggfuset bc [open $eggfu(path,bc) r]set sex [gets $bc]set sex [gets $bc]close $bcreturn $sex}proc myage {} {global eggfuset bc [open $eggfu(path,bc) r]set bdate [split [gets $bc] @]close $bcset ztime [unoctal [mconv [getdate time]]]set btime [unoctal [mconv [lindex $bdate 1]]]set bdate [lindex $bdate 0]set today [getdate date]set month [unoctal [lindex [split $today /] 0]]set bmonth [unoctal [lindex [split $bdate /] 0]]set zyear [getdate year]set byear [lindex [split $bdate /] 2]#putlog "$ztime $btime $bdate $today $month $bmonth $zyear $byear"if {$today==$bdate} {return [lconv [expr $ztime - $btime]]} elseif {$month==$bmonth} {return "[expr [unoctal [lindex [split $today /] 1]] - [unoctal [lindex [split $bdate /] 1]]] days"} elseif {$zyear==$byear} {return "[expr $month - $bmonth] months"} else {return "[expr $zyear - $byear] years"}}proc lconv {mins} {set i 0;set n $mins;set hour 0while {$i&lt;$n} {incr iif {$i&gt;$n} {break}if {$mins&gt;59} {incr mins -60;incr hour}}set mins [unoctal $mins]set hour [unoctal $hour]#1440=24if {$mins!=0} {return "$hour hrs, $mins min"} {return "$hour hrs"}}proc mconv {args} {return [expr [lindex [split $args :] 1] + ([unoctal [lindex [split $args :] 0]] * 60)]}proc getdate {arg} {       set system [split [clock format [clock seconds] -format "%m/%d/%Y@%H:%M"] @]       set date [split [lindex $system 0] /]       set time [lindex $system 1]       set month [lindex $date 0]       set day [lindex $date 1]       set year [lindex $date 2]       set date [join $date /]if {$arg=="date"} {return $date}if {$arg=="time"} {return $time}if {$arg=="month"} {return $month}if {$arg=="day"} {return $day}if {$arg=="year"} {return $year}}proc unoctal {args} {set args [split $args {}]set n [llength $args]set i 0while {$i&lt;$n} {if {[string match 0 [lindex $args 0]]} {regsub -all "0 " $args "" args}incr i;set n [llength $args]if {$i&gt;$n} {break}}return [join $args {}]}proc happybday {} {global eggfuset bc [open $eggfu(path,bc) r]set bdate [lindex [gets $bc] 0];close $bcset bdiff [myage]# !B is for born (birthdate), !D is for difference (age)set bday {{I was born on !B. I'm only !D old}{My birthday is !B}{My birthday is !B}{I'm only !D old!}{}}regsub -all "!B" $bday $bdate bdayregsub -all "!D" $bday $bdiff bdayreturn [lindex $bday [rand [llength $bday]]]}proc learnit {nick host hand chan text} {global botsnick eggfuregsub -all "\\\"" $text "'" text# death to leet hax0rz!# regsub -all "\\\\n|\\\\a|\\\\b|\\\\f|\\\\r|\\\\t|\\\\v" $text "" textregsub -all "\007|\015|\022|\026|\028|\030" $text "" textregsub -all "\\\\" $text "\\\\\\\\" text# regsub -all "\\\[" $text "\\\\\\\[" text# regsub -all "\\\]" $text "\\\\\\\]" text# regsub -nocase "'s " $text " is " textregsub -nocase " let is " $text " lets " textregsub -nocase " isn't " $text " is not " textset text [fixgrammar $text] set start [low [lindex $text 0]]set ignorewords {[botsnick] who what ok}if {($eggfu(trig,lrn,0)) &amp;&amp; [lindex $text 0]!="[bit]$eggfu(trig,lrn,1)"} {set do_nothing 1} elseif {![string match *$nick* $eggfu(ignores)]} {# lets not forget about stripping! wooohooooif {$eggfu(trig,lrn,0)} {regsub -all -nocase "[bit]$eggfu(trig,lrn,1) " $text "" text}set original {}set type [lsearch -exact [low $text] "is"]if {$type!="-1"} {set type "is"} {set type "are"}set whom [lsearch -exact $text "$type"]set getword [getword [lrange $text 0 [expr $whom -1]]]if {$getword!=""} {set breaker [lsearch -exact $getword "=&gt;"]set keyword [lrange $getword 0 [expr $breaker - 1]]set original [lrange $getword [expr $breaker + 1] e]} else {set keyword [lrange $text 0 [expr $whom -1]]}set response [lrange $text [expr $whom + 1] e]if {![isinop [lindex $response 0]]} {set ll [lindex [split [lindex $response e] {}] e]while {$ll=="."} {set response [trim {[lrange $response 0 end-1] [join [lrange [split [lindex $response e] {}] 0 end-1] {}]}]set ll [lindex [split [lindex $response e] {}] e]}} {if {![matchattr $hand $eggfu(req,cn)]} {putnotc $nick "Sorry, you don't have access to do that."return 0}}set also [lindex $text [expr $whom + 1]]# replace a few thingsregsub -all -nocase " my " $response " $nick's " responseregsub -all -nocase " i am " $response " $nick is " responseregsub -all -nocase "[botsnick] is " $response "I am " responseregsub -all -nocase " [botsnick]'s " $response " my " responseregsub -all -nocase "[botsnick], " $text "" textif {[string match *$start* $ignorewords]} {set text [lrange $text 1 e]}if {[string match -nocase no, $start] &amp;&amp; ![isfrozen $keyword]} {delword $keyword}if {$original != "" &amp;&amp; ![isfrozen $keyword]} {delword $keywordset response "$original | $response"set original {}}if {($original == "" &amp;&amp; ![isfrozen $keyword]) &amp;&amp; ([string length $keyword] &gt;= 3 &amp;&amp; [string length $keyword] &lt;= 100)}  {#   if {$start == "no,"} {putchan $chan "Ok $nick"}addword $keyword $response}}}proc askquestion {nick host hand chan text} {global botnick botsnick floodcount eggfu eggverset botsnick [low $botnick]set lownick [low $nick]set trigger [bit]$eggfu(trig,ask,1)set textlen [string length $text]set ignorecheck [lsearch -exact [low $eggfu(ignores)] [low $nick]]set chancheck [lsearch -exact [low $eggfu(chans)] [low $chan]]# check status of triggerif {($eggfu(trig,ask,0) &amp;&amp; [lindex $text 0] == $trigger) || !$eggfu(trig,ask,0)} {set triggered 1regsub -all "$trigger " $text "" text} {set triggered 0}# perform passcheck, if anything fails we don't respond.if {$triggered &amp;&amp; $ignorecheck == -1 &amp;&amp; ($chancheck != -1 || $eggfu(chans) == "&amp;all") &amp;&amp; $textlen &gt; 1} {regsub -all "\\\"" $text "'" textregsub -all "\\\!" $text "" textregsub -all "\\\?" $text "" textset ll [lindex [split [lindex $text e] {}] e]while {$ll=="."} {set text [trim {[lrange $text 0 end-1] [join [lrange [split [lindex $text e] {}] 0 end-1] {}]}]set ll [lindex [split [lindex $text e] {}] e]}set text [trim $text]set q(start) [lindex $text 0]set q(end) [lrange $text [expr [llength $text] - $eggfu(subrange)] e]set q(long) $text#if {$getquestion == "me?"} {set q(end) $nick}#regsub -all "me?" $q(end) "$nick" q(end)regsub -all "\007|\015|\022|\026|\028|\030" $q(start) "" q(start)set getword [getword $q(end)]set breaker [lsearch -exact $getword "=&gt;"]set keyword [lrange $getword 0 [expr $breaker - 1]]if {[isfrozen $keyword]} {incr breaker}set q(ans) [lrange $getword [expr $breaker + 1] e]if {[isfrozen $q(ans)]} {set q(ans) [lrange $q(ans) 2 e]}if {$q(long)=="egg-fu"} {set q(ans) "&lt;action&gt; is running \002egg-fu $eggver\002, by ch3mical"} #if {$q(ans)=="" &amp;&amp; $q(end)!=$q(long)} {set q(ans) $q(end)}# pass their nick and chan to the randomizer for in-opt functionalityset q(ans) [randomize $q(ans) $nick $chan]regsub -all "\\\$question" $q(ans) "$text" q(ans)regsub -all "\\\$keyword" $q(ans) "$q(long)" q(ans)regsub -all "\\{" $keyword "" keywordregsub -all "\\}" $keyword "" keywordregsub -all "\\{" $q(ans) "" q(ans)regsub -all "\\}" $q(ans) "" q(ans)set sendto $chanif {$q(start) == "tell"} {set whom [lsearch -exact $text "tell"] set target [lindex $text [expr $whom + 1]]if {$target!=""} { set sendto $targetregsub -all "\\\$who" $q(ans) $target q(ans)   }} {regsub -all "\\\$who" $q(ans) $nick q(ans)}if {$q(ans)!="" &amp;&amp; $q(ans)!="~"} {set getstart [lindex $q(ans) 0] set getrest [lrange $q(ans) 1 e]if {$getstart == "&lt;reply&gt;"} {putserv "PRIVMSG $sendto :$getrest"if {$sendto!=$nick &amp;&amp; $sendto!=$chan} {putnotc $nick "Told $sendto \"$getrest\""}    } elseif {$getstart == "&lt;ctcp&gt;"} {putserv "PRIVMSG $nick :\001$getrest\001"} elseif {$getstart == "&lt;notice&gt;"} {putnotc $sendto "$getrest" } elseif {$getstart == "&lt;action&gt;"} {putserv "PRIVMSG $sendto :\001ACTION $getrest\001"} {regsub -all "!Q" [grabrand responses] $keyword randmyregsub -all "!A" $randmy $q(ans) randmyregsub -all "!U" $randmy $nick randmyputserv "PRIVMSG $sendto :$randmy"}} elseif {[string match -nocase [botsnick]* $q(start)] &amp;&amp; $q(end) != ""} {if {[lindex $q(end) 0]==$q(start)} {set q(end) [lrange $q(end) 1 e]}regsub -all "\\?" $q(end) "" q(end)regsub -all "!Q" [grabrand unsure] $q(end) randmnregsub -all "!A" $randmn $q(ans) randmnregsub -all "!U" $randmn $nick randmnputserv "PRIVMSG $sendto :$randmn"}}return 0}### start-up codeloadcfg $eggfu(path,cfg)loadrandbind pubm $eggfu(req,ak) * askquestionbind pubm $eggfu(req,ln) "* is *" learnitbind pubm $eggfu(req,ln) "* isn't *" learnit#bind pubm $eggfu(req,ln) "* it's *" learnit#bind pubm $eggfu(req,ln) "* are *" learnitbind pubm - "* =~ *" alteritbind pubm - "*--" karma_actionbind pubm - "*++" karma_actionbind pub o|o thaw thawitbind pub m|m lock lockitbind pub o|o freeze freezeitbind pub m|m unlock unlockitbind pub o|o forget forgetitbind pub -|- karma karma_infobind dcc o|o freeze dcc_freezeitbind dcc o|o thaw dcc_thawitbind dcc m|m lock dcc_lockitbind dcc m|m unlock dcc_unlockitbind dcc o|o forget dcc_forgetitbind dcc -|- karma dcc_karmaset eggver "2.0.10"set floodcount 0# set this variable to a relative or absolute path if you plan on storing your birth certificate somewhere# other than the default location, advanced users onlyif {![file exists $eggfu(path,bc)]} {#if the brain can't be found, we'll create a minimal oneif {![file exists $eggfu(brain)]} {putlog "Hatching your new egg..."set wf [open $eggfu(brain) w]puts $wf "born =&gt; &lt;reply&gt; \$birthday"puts $wf "birthday =&gt; &lt;reply&gt; \$birthday"puts $wf "how old are you =&gt; &lt;reply&gt; I'm \$age old | &lt;action&gt; is \$age old"puts $wf "boy or girl =&gt; &lt;reply&gt; I'm a \$sex! | &lt;action&gt; is a \$sex"puts $wf "asl =&gt; &lt;reply&gt; \$age/\$sex/earth!"puts $wf "how =&gt; ~"puts $wf "who =&gt; ~"puts $wf "why =&gt; ~"puts $wf "what =&gt; ~"puts $wf "when =&gt; ~"puts $wf "where =&gt; ~"puts $wf "wtf =&gt; ~"close $wf}# flip a coin for the sexset coin [rand 10]if {$coin&gt;=5} {set sex boy} {set sex girl}putlog "\002IT'S A [string toupper $sex]!!\002"putlog "\002Congratulations!\002 You are now the proud owner of an \002egg-fu\002 bot!"set bdate [split [concat [exec date +%m/%d/%Y@%H:%M]] @]putlog "I was born on \002$bdate\002"set bc [open $eggfu(path,bc) w]puts $bc $bdateputs $bc $sexclose $bc}set bc [open $eggfu(path,bc) r]set sex [gets $bc];set sex [gets $bc];close $bcputlog "\002egg\002-\002fu\002 \002$eggver\002 loaded! (age: [myage], sex: $sex)"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9390">PoHuIsT</a> — Sat Oct 27, 2007 5:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PoHuIsT]]></name></author>
		<updated>2007-10-27T04:28:50-04:00</updated>

		<published>2007-10-27T04:28:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77175#p77175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77175#p77175"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77175#p77175"><![CDATA[
<blockquote class="uncited"><div>It cant be that good if it doesn't work =p</div></blockquote>ic working almost but with 1 eror<div class="codebox"><p>Code: </p><pre><code>[09:26] expected integer but got "09" (looks like invalid octal number)    while executing"expr [lindex [split $arg :] 0] + [unoctal [lindex [split $arg :] 1]] * 60"    (procedure "mconv" line 1)    invoked from within"mconv [getdate time]"    (procedure "myage" line 7)    invoked from within"myage"    invoked from within"putlog "\002egg\002-\002fu\002 \002$eggver\002 loaded! (age: [myage], sex: $sex)""    (file "scripts/egg-fu_2.0.11.tcl" line 762)    invoked from within"source scripts/egg-fu_2.0.11.tcl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9390">PoHuIsT</a> — Sat Oct 27, 2007 4:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-10-27T04:16:09-04:00</updated>

		<published>2007-10-27T04:16:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77173#p77173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77173#p77173"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77173#p77173"><![CDATA[
It cant be that good if it doesn't work =p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Oct 27, 2007 4:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PoHuIsT]]></name></author>
		<updated>2007-10-27T03:58:26-04:00</updated>

		<published>2007-10-27T03:58:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77172#p77172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77172#p77172"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77172#p77172"><![CDATA[
<blockquote class="uncited"><div>egg-fu is no longer supported and the original author unreachable!<br><br>I'd suggest using <a href="http://www.bmotion.net:8000/bmotion" class="postlink">bMotion</a> instead.</div></blockquote>YA i now but bnotion iz wery slow and not so good as egg-fuu<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9390">PoHuIsT</a> — Sat Oct 27, 2007 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-10-25T21:18:00-04:00</updated>

		<published>2007-10-25T21:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77134#p77134</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77134#p77134"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77134#p77134"><![CDATA[
egg-fu is no longer supported and the original author unreachable!<br><br>I'd suggest using <a href="http://www.bmotion.net:8000/bmotion" class="postlink">bMotion</a> instead.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Oct 25, 2007 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-10-25T19:19:37-04:00</updated>

		<published>2007-10-25T19:19:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77131#p77131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77131#p77131"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77131#p77131"><![CDATA[
Yeah.. I got the same private message with questions about this thread. It's not needed to do this if you've already mentioned it in a thread btw (especially to two entirely different members, sheesh!). Mostly because by the time I see and have had time to reply to your error/question, someone else has already done so, which is basically a waste of my time.<br><br>Now.. about this script, quite honestly, it's like nml375 has said.  The script is badly written using a single parameter of args (full of restrictions) in the proc header, then uses clumsy lindex/lrange methods (incorrectly applying them to strings...) to tear out the variables. Instead of all this they could've easily passed variables directly using them as parameters. Because of the clumsiness of this approach it makes debugging by eye harder. When just learning tcl, some people just stubble odd code bits together for no apparent reason at all (when functions exist to easily do them internally), then act all arrogant in the top comments of their script like it's some work of god. It's sometimes funny to see, sometimes it's not.  In this case it's sorta both. To me funny, to you the sad, unfortunately.  The good part is, you can use any other script as an example of proper tcl style, and possibly learn how to fix things yourself if your inclined enough. It's enough to ask once, even twice is okay, at some point you appear as if begging. When a person begs, it's usually because they refuse to do the required work to earn something for themselves.  Homeless people most times fit this description, sometimes those using internet forums do too, it's a grab bag. But for future refernece (at least on this forum) try not to appear so 'homeless' (...if you know what I mean, heh) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Oct 25, 2007 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-25T11:49:46-04:00</updated>

		<published>2007-10-25T11:49:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77123#p77123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77123#p77123"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77123#p77123"><![CDATA[
This script is pretty much littered with bugs and other issues. Posting full code would be pretty pointless unless I would take the effort of rewriting and correcting all those issues. Atleast for me, it would probably be easier to write something from scratch, as I'd first have to get myself into the mind of the original coder. And to be honest, I hav'nt got either the time or the motivation of doing either.<br><br>I'd bet your best chances of getting that script working, is to contact the author.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Oct 25, 2007 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PoHuIsT]]></name></author>
		<updated>2007-10-25T08:39:27-04:00</updated>

		<published>2007-10-25T08:39:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77118#p77118</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77118#p77118"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77118#p77118"><![CDATA[
plz wtite full code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9390">PoHuIsT</a> — Thu Oct 25, 2007 8:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PoHuIsT]]></name></author>
		<updated>2007-10-25T08:37:44-04:00</updated>

		<published>2007-10-25T08:37:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77117#p77117</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77117#p77117"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77117#p77117"><![CDATA[
hmmm i dont speek eng well i dont understood what you told now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9390">PoHuIsT</a> — Thu Oct 25, 2007 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-25T08:36:17-04:00</updated>

		<published>2007-10-25T08:36:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77116#p77116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77116#p77116"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77116#p77116"><![CDATA[
As I was way too lazy to rewrite the whole myage-proc, I simply pointed out the single line that needed editing...<br>Three dots is used to indicate there's part of the code/quote/etc that was supressed to emphasize the selected part<br><br>Obviously, the rest of the proc should remain unedited.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Oct 25, 2007 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PoHuIsT]]></name></author>
		<updated>2007-10-25T08:32:16-04:00</updated>

		<published>2007-10-25T08:32:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77115#p77115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77115#p77115"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77115#p77115"><![CDATA[
<blockquote class="uncited"><div>Btw, bumping and sending duplicate posts as PM is generally not appreciated.</div></blockquote>yes im sorry <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=9390">PoHuIsT</a> — Thu Oct 25, 2007 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PoHuIsT]]></name></author>
		<updated>2007-10-25T08:31:46-04:00</updated>

		<published>2007-10-25T08:31:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77114#p77114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77114#p77114"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77114#p77114"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[13:30] missing close-brace: possible unbalanced brace in comment    while executing"proc myage {} {set bdate [split [gets $bc] @]proc getdate {arg} { set system [split [clock format [clock seconds] -format "%m/%d/%Y@%H:%M"] @] se..."    (file "scripts/egg-fu_2.0.2.tcl" line 664)    invoked from within"source scripts/egg-fu_2.0.2.tcl"</code></pre></div><br>dont now that iz wrong O.o<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9390">PoHuIsT</a> — Thu Oct 25, 2007 8:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-25T08:28:21-04:00</updated>

		<published>2007-10-25T08:28:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77113#p77113</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77113#p77113"/>
		<title type="html"><![CDATA[egg-fu 2.0.2 problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77113#p77113"><![CDATA[
Btw, bumping and sending duplicate posts as PM is generally not appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Oct 25, 2007 8:28 am</p><hr />
]]></content>
	</entry>
	</feed>
