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

	<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-01-07T18:35:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-01-07T18:35:06-04:00</updated>

		<published>2009-01-07T18:35:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86780#p86780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86780#p86780"/>
		<title type="html"><![CDATA[Profile Script - Modification Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86780#p86780"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[file exist /$patch/[string tolower $nick].txt]} { </code></pre></div>This is probably how your going to have to approach it. Also keep in mind nicknames can contain characters that cannot be made into filenames. People with strange nicknames will cause errors with this script. What it should do is make one text file array { nick greet } and store everything in that. Then to read you just scan the array. To write you scan the array, and lreplace. It's silly imo to make lots of one line files, just my 2 cents worth.. <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> — Wed Jan 07, 2009 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2009-01-07T15:51:03-04:00</updated>

		<published>2009-01-07T15:51:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86778#p86778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86778#p86778"/>
		<title type="html"><![CDATA[Profile Script - Modification Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86778#p86778"><![CDATA[
ok there I need the help of someone else... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br><br>is there something like "file existst -nocase", or do we have to set all the filenames with string tolower?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Wed Jan 07, 2009 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2009-01-07T06:24:56-04:00</updated>

		<published>2009-01-07T06:24:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86758#p86758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86758#p86758"/>
		<title type="html"><![CDATA[Possible Solutions??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86758#p86758"><![CDATA[
Hi Nimos,<br><br> I was foolin around with it:<br><br>1. I deleted the last { on line 135 that seems to have started the bot.<br><br>2.  In regards to "<strong class="text-strong">Tcl error [mygreet]: can't read "yourgreet": no such variable"</strong><br><br> I asked a friend and he said to "change global patch  to "global patch yourgreet mychan" inside the "mygreet" function.<br><br>I tried that and it works thus far.<br><br>3. One thing i would like to have is: currently when i do !showprofile &lt;nick&gt; it is case-sensitive, eg. Achilles will be displayed but not achilles. Any ideas on how to make it like that?<br><br>thanks Nimos,  Achilles<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Wed Jan 07, 2009 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2009-01-07T05:50:42-04:00</updated>

		<published>2009-01-07T05:50:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86756#p86756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86756#p86756"/>
		<title type="html"><![CDATA[RE: Tested heres what I found]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86756#p86756"><![CDATA[
Hi Nimos,<br><br>thanks for taking the trouble man, really appreciate it  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>heres what i found after testing it:<br><br>1. file "scripts/greet.tcl" line 135)<br>    &lt;bot&gt;     invoked from within<br>   &lt;bot&gt; "source scripts/greet.tcl"<br>   &lt;bot&gt;     (file "gail.conf" line 1350)<br><br>2. I set my profile, the bot writes the profile as a text file OK but<br>    it wont display it when i enter or when i type !showprofile<br>   i get this error in bot "<strong class="text-strong">Tcl error [mygreet]: can't read "yourgreet": no  such variable"</strong><br><br>best regards,<br>Achilles<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Wed Jan 07, 2009 5:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2009-01-06T17:22:35-04:00</updated>

		<published>2009-01-06T17:22:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86748#p86748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86748#p86748"/>
		<title type="html"><![CDATA[Profile Script - Modification Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86748#p86748"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>######################################################TxTGreet 1.0 by darles (TCL script for eggdrop 1.x)##TxTGreet released: 09.08.2005 ##---------------------------------------------------## Homepage: http://egghelp.nasa-team.net ## e-mail: darles@takas.lt ## IRC: irc.data.lt:6667 @ Aitvaras.net #egghelp ##---------------------------------------------------## Please don't change my nick to your... ## Thanks, darles ####################################################### Commands: ## ## !profile &lt;greet text&gt; - add greet or change it ## !delprofile - remove greet ## !myprofile - show greet ## ####################################################### ## THANKS FOR: ## www.rulex.net - (For shell) ## irc.quakenet.org @ QuakeNet #tcl (help) ## ######################################################### Necessary configuration ###set patch "deleted"# Example: "home/darles/eggdrop/greet"set greetsize "100"# Greet limit (symbols)set floodtimer "30"# Time after which person can change it's greetset mychan "#lamest"# The Channel the script is on### End of necessary configuration ###### Other configuration ###set floodtext "Don't flood!!! You could set profile after $floodtimer seconds"# This is message will be showed for floodersset greetok "Your profile has been successfully set"# This message will be showed, when greet is OKset greetbad "Your profile is longer than $greetsize symbols"# This error message will be showed then greet is longer than it should beset greetdel "Your profile successfully deleted"# This message will be showed then greet will be successfully deletedset greetdelerr "Your profile not found"# This error message will be showed then greet file not foundset yourgreet "Your profile is:"# This is message using in !mygreet command###################################################### ## PLEASE DO NOT EDIT LINES BELOW!!! ## ######################################################bind pub - !profile addgreetbind pub - !delprofile remgreetbind pub - !showprofile mygreetbind pub - !help helpbind join - * showgreetproc addgreet {nick uhost hand chan arg} {global file greetsize patch greetbad greetok floodtext floodtimer mychanif {$chan == $mychan} {set file "$nick.txt2"if {[file exist /$patch/$file]} {set file2 [open /$patch/$file r]gets $file2 ignoreclose $file2putserv "NOTICE $nick :$ignore"} else {set file3 [open /$patch/$nick.txt w+]set text [lrange [split $arg] 0 end]if {[string length $text] &gt;= $greetsize} {putserv "NOTICE $nick :$greetbad"return 1} else {puts $file3 "$text"close $file3putserv "NOTICE $nick :$greetok"set file4 [open /$patch/$file w+]puts $file4 $floodtextclose $file4utimer $floodtimer del}}}}proc del {} {global file patchfile delete "/$patch/$file"}proc showgreet {nick uhost hand chan} {global patch mychanif {$chan == $mychan} {if {[file exist /$patch/$nick.txt]} {set file5 [open /$patch/$nick.txt r+]gets $file5 textclose $file5putserv "PRIVMSG $chan :\[$nick\] $text"}}}proc mygreet {nick uhost hand chan arg} {global patch mychanif {$chan == $mychan} {if {$arg == ""} {set arg $nick}if {[file exist /$patch/$arg.txt]} {set file6 [open /$patch/$arg.txt r]gets $file6 textclose $file6putserv "NOTICE $nick :$yourgreet: \[$nick\] $text"} else {putserv "NOTICE $nick :Sorry, $arg was not found in my Database!"}}}}proc remgreet {nick uhost hand chan arg} {global patch greetdel greetdelerr mychanif {$chan == $mychan} {if {[file exist /$patch/$nick.txt]} {file delete "/$patch/$nick.txt"file delete "/$patch/$nick.txt2"putserv "NOTICE $nick :$greetdel"} else {putserv "NOTICE $nick :$greetdelerr"}}}proc help {nick uhost hand chan arg} {global mychanif {$chan == $mychan} {putserv "NOTICE $nick :My commands is:"putserv "NOTICE $nick :!profile &lt;text&gt; - set your greet, !delprofile - remove your greet, !showprofile - show your or another someones greet, !help - show this help"putserv "NOTICE $nick :Greet script by darles."}}putlog "TxTGreet 1.0 by darles successfully loaded"</code></pre></div>!showprofile =&gt; returns your greet<br>!showprofile I_like_cookies =&gt; returns I_like_cookies' greet<br><br>in the config, set the variable "mychan" to the channel of your choice (only one channel, if you need more, ask^^)<br><br>if theres an error, i have missed a { or } (happens often^^)<br><br>have fun<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Tue Jan 06, 2009 5:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2009-01-05T13:35:43-04:00</updated>

		<published>2009-01-05T13:35:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86739#p86739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86739#p86739"/>
		<title type="html"><![CDATA[Profile Script - Modification Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86739#p86739"><![CDATA[
Hi,<br><br>I am running Darles  greet script,  Could anyone suggest how to make a minor modification?<br>I think he is not available anymore as i have emailed him and no answer.<br><br>1. Would like to be able to set the channel the script runs on.<br><br>2. Enable a normal user who joins the channel, to type a public command example !profile achilles and the bot displays the profile.<br>Currently, only the person who makes the profile can display it<br><br>script follows below, thanks for your help people .<br><br>#####################################################<br>#TxTGreet 1.0 by darles (TCL script for eggdrop 1.x)#<br>#TxTGreet released: 09.08.2005                      #<br>#---------------------------------------------------#<br>#  Homepage: <a href="http://egghelp.nasa-team.net" class="postlink">http://egghelp.nasa-team.net</a>           #<br>#  e-mail: <a href="mailto:darles@takas.lt">darles@takas.lt</a>                          #<br>#  IRC: irc.data.lt:6667 @ Aitvaras.net #egghelp    #<br>#---------------------------------------------------#  <br>#  Please don't change my nick to your...           #<br>#  Thanks, darles                                   #<br>#####################################################<br>#  Commands:                                        #<br>#                                                   #<br>#  !profile &lt;greet text&gt; - add greet or change it   #<br>#  !delprofile - remove greet                       #<br>#  !myprofile - show greet                          #<br>#                                                   #<br>#####################################################<br>#                                                   #<br>#  THANKS FOR:                                      #             <br>#  <a href="http://www.rulex.net" class="postlink">www.rulex.net</a> - (For shell)                      #<br>#  irc.quakenet.org @ QuakeNet #tcl (help)          #<br>#                                                   #<br>#####################################################<br><br>### Necessary configuration ###<br><br>set patch "deleted"<br># Example: "home/darles/eggdrop/greet"<br><br>set greetsize "100"<br># Greet limit (symbols)<br><br>set floodtimer "30"<br># Time after which person can change it's greet<br><br>### End of necessary configuration ###<br><br>### Other configuration ### <br><br>set floodtext "Don't flood!!! You could set profile after $floodtimer seconds"<br># This is message will be showed for flooders<br><br>set greetok "Your profile has been successfully set"<br># This message will be showed, when greet is OK<br><br>set greetbad "Your profile is longer than $greetsize symbols"<br># This error message will be showed then greet is longer than it should be<br><br>set greetdel "Your profile successfully deleted"<br># This message will be showed then greet will be successfully deleted<br><br>set greetdelerr "Your profile not found"<br># This error message will be showed then greet file not found<br>set yourgreet "Your profile is:"<br># This is message using in !mygreet command<br><br>#####################################################<br>#                                                   #<br>#        PLEASE DO NOT EDIT LINES BELOW!!!          #<br>#                                                   #<br>#####################################################              <br><br>bind pub - !profile addgreet<br>bind pub - !delprofile remgreet<br>bind pub - !myprofile mygreet<br>bind pub - !help help<br>bind join - * showgreet<br><br>proc addgreet {nick uhost hand chan arg} {<br>global file greetsize patch greetbad greetok floodtext floodtimer<br>set file "$nick.txt2"<br>if {[file exist /$patch/$file]} {<br>set file2 [open /$patch/$file r]<br>gets $file2 ignore<br>close $file2<br>putserv "NOTICE $nick :$ignore"<br>} else {<br>set file3 [open /$patch/$nick.txt w+]<br>set text [lrange [split $arg] 0 end]<br>if {[string length $text] &gt;= $greetsize} {<br>putserv "NOTICE $nick :$greetbad"<br>return 1<br>} else {<br>puts $file3 "$text"<br>close $file3<br>putserv "NOTICE $nick :$greetok"<br>set file4 [open /$patch/$file w+]<br>puts $file4 $floodtext<br>close $file4<br>utimer $floodtimer del<br>}<br>}<br>}<br>proc del {} {<br>global file patch<br>file delete "/$patch/$file"<br>}<br>proc showgreet {nick uhost hand chan} {<br>global patch<br>if {[file exist /$patch/$nick.txt]} {<br>set file5 [open /$patch/$nick.txt r+]<br>gets $file5 text<br>close $file5<br>putserv "PRIVMSG $chan :\[$nick\] $text"<br>}<br>}<br>proc mygreet {nick uhost hand chan arg} {<br>global patch<br>if {[file exist /$patch/$nick.txt]} {<br>set file6 [open /$patch/$nick.txt r]<br>gets $file6 text<br>close $file6<br>putserv "NOTICE $nick :$yourgreet: \[$nick\] $text"<br>}<br>}<br>proc remgreet {nick uhost hand chan arg} {<br>global patch greetdel greetdelerr<br>if {[file exist /$patch/$nick.txt]} {<br>file delete "/$patch/$nick.txt"<br>file delete "/$patch/$nick.txt2"<br>putserv "NOTICE $nick :$greetdel"<br>} else {<br>putserv "NOTICE $nick :$greetdelerr"<br>}<br>}<br>proc help {nick uhost hand chan arg} {<br>putserv "NOTICE $nick :My commands is:"<br>putserv "NOTICE $nick :!profile &lt;text&gt; - set your greet, !delprofile - remove your greet, !myprofile - show your greet, !help - show this help"<br>putserv "NOTICE $nick :Greet script by darles."<br>}<br>putlog "TxTGreet 1.0 by darles successfully loaded"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Mon Jan 05, 2009 1:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
