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

	<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>2005-06-25T15:02:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[inxs]]></name></author>
		<updated>2005-06-25T15:02:35-04:00</updated>

		<published>2005-06-25T15:02:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51367#p51367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51367#p51367"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51367#p51367"><![CDATA[
thanks all  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> , can u tell me the command to add text for this.<br>is this a public command, i want this script for my eggdrop trivia.tcl to add a Q&amp;A , as <span style="color:red">/msg botnick add answer*question</span> only that no other things needed to save it to trivia.something(anything  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6332">inxs</a> — Sat Jun 25, 2005 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-25T12:48:12-04:00</updated>

		<published>2005-06-25T12:48:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51360#p51360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51360#p51360"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51360#p51360"><![CDATA[
Arrh, i see, i was thinking is was a array, oh well ;p<br>i sometimes get them the wrong way around<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sat Jun 25, 2005 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-25T12:28:04-04:00</updated>

		<published>2005-06-25T12:28:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51359#p51359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51359#p51359"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51359#p51359"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>global botnickand $::botnick</code></pre></div></div></blockquote>If you globalize botnick then you don't have to use $::botnick, you globalize it so you can use $botnick. $::botnick can be used when it's not globalized.<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code> bind msgm - "!read*" botpost_lese proc botpost_lese {nick host hand text} {     global post_messages     global post_userfile     global post_botnick</code></pre></div>could be changed to <div class="codebox"><p>Code: </p><pre><code>bind msgm - "!read*" botpost_lese proc botpost_lese {nick host hand text} {     global post </code></pre></div>i think ;p</div></blockquote>You thought wrong again, 'post' is not an array (which would look like this btw post(element) and not post_element)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jun 25, 2005 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-25T11:50:02-04:00</updated>

		<published>2005-06-25T11:50:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51357#p51357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51357#p51357"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51357#p51357"><![CDATA[
Also<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - "!read*" botpost_lese proc botpost_lese {nick host hand text} {     global post_messages     global post_userfile     global post_botnick </code></pre></div>could be changed to <br><div class="codebox"><p>Code: </p><pre><code>bind msgm - "!read*" botpost_lese proc botpost_lese {nick host hand text} {     global post </code></pre></div>i think ;p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sat Jun 25, 2005 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-25T11:47:49-04:00</updated>

		<published>2005-06-25T11:47:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51356#p51356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51356#p51356"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51356#p51356"><![CDATA[
instead of using all that<br><div class="codebox"><p>Code: </p><pre><code>#here the name of your bot set post_botnick "XXXXXXX"and$post_botnick</code></pre></div>use<br><div class="codebox"><p>Code: </p><pre><code>global botnickand $::botnick</code></pre></div>Otherwise when the botnick changes, the $post_botnick var does not change!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sat Jun 25, 2005 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tessa1]]></name></author>
		<updated>2005-06-25T10:53:44-04:00</updated>

		<published>2005-06-25T10:53:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51354#p51354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51354#p51354"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51354#p51354"><![CDATA[
In english <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>set post_userfile "scripts/post.userfile"set post_messages "scripts/post.messages"#here the name of your botset post_botnick "XXXXXXX"bind join - * bot_checkpostproc bot_checkpost {nick host hand channel} {    global post_messages    global post_botnick    if {[get $nick $post_messages]!=""} {putserv "NOTICE $nick :13A new message is waiting for you!"putserv "NOTICE $nick :Type /msg $post_botnick !read &lt;Passwort&gt;."    }}bind msgm - "!new*" botpost_newproc botpost_new {nick host hand text} {    global post_userfile    set passwort [lindex $text 1]    if {$passwort==""} {putserv "NOTICE $nick : No password allocated!";    } else {if {[get $nick $post_userfile] == ""} {    add $nick $passwort $post_userfile} else {    putserv "NOTICE $nick : Your Mail-Box currently exists!"}    }}bind msgm - "!read*" botpost_leseproc botpost_lese {nick host hand text} {    global post_messages    global post_userfile    global post_botnick    set passwort [lindex $text 2]    set postnick [lindex $text 1]    if {$passwort == ""} {set passwort [lindex $text 1]set postnick $nick    }    if {[get $postnick $post_userfile]==""} {putserv "NOTICE $nick :You have no Mail-Box."putserv "NOTICE $nick :Type /msg $post_botnick !new &lt;password&gt; to order a Mail-Box!"    }    if {[get $postnick $post_userfile]!=$passwort} {putserv "NOTICE $nick : Wrong Password!"    } else {set nachricht [get $postnick $post_messages]if {$nachricht == "" } {    putserv "NOTICE $nick : You have no messages!"} else {    putserv "NOTICE $nick : $nachricht"    remove $postnick $post_messages    set nachricht [get $postnick $post_messages]    while {$nachricht != ""} {putserv "NOTICE $nick : $nachricht"remove $postnick $post_messages    }}    }}#HELP WITH SYNTAX !botpostbind msg - !botpost botpost_helpproc botpost_help {nick host hand text} {    global post_botnick    set abfragender $nick    putserv "NOTICE $abfragender :/msg $post_botnick !new &lt;password&gt; to order a Mail-Box."    putserv "NOTICE $abfragender :/msg $post_botnick !send &lt;nick&gt; &lt;message&gt; to send a message."    putserv "NOTICE $abfragender :/msg $post_botnick !read &lt;nickname&gt; &lt;password&gt; to read the messages."}bind msg - !send botpost_sendeproc botpost_sende {nick host hand text} {    global post_messages    global post_userfile    set adressat [lindex $text 0]    set nachricht "$nick sagt: [lrange $text 1 end]"    putserv "NOTICE $nick :message was sent!"    putlog "Message to $adressat: $nachricht"    add $adressat $nachricht $post_messages}proc add {key value file} {    exec "touch" $file    set fh [open $file a]    puts $fh "$key =&gt; $value"    close $fh}proc get {key file} {    exec "touch" $file    set fh [open $file r]    set returnword {}    while {![eof $fh]} {set stdin [string trim [gets $fh]]if {[eof $fh]} { break }set breaker [lsearch -exact $stdin "=&gt;"]set getkey [lrange $stdin 0 [expr $breaker - 1]] set getresult [lrange $stdin [expr $breaker + 1] end]if {[string tolower $getkey] == [string tolower $key]} { set returnword $getresult }    }    close $fh    return $returnword}proc remove {word file} {    exec "touch" $file    set fh [open $file r]    set return {}    set del 0    while {![eof $fh]} {set stdin [string trim [gets $fh]]if {[eof $fh]} { break }if {![regexp -nocase $word $stdin]} {    lappend return $stdin} {    incr del 1}    }    close $fh;    set fh [open $file w]    foreach a $return {puts $fh $a    }    close $fh    return $del}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6110">tessa1</a> — Sat Jun 25, 2005 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[inxs]]></name></author>
		<updated>2005-06-25T10:34:36-04:00</updated>

		<published>2005-06-25T10:34:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51353#p51353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51353#p51353"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51353#p51353"><![CDATA[
thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  but i down understand German lang<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6332">inxs</a> — Sat Jun 25, 2005 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tessa1]]></name></author>
		<updated>2005-06-25T09:34:54-04:00</updated>

		<published>2005-06-25T09:34:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51352#p51352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51352#p51352"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51352#p51352"><![CDATA[
Sorry, the Script is in German <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>set post_benutzerdatei "scripts/post.benutzerdatei"set post_nachrichten "scripts/post.nachrichten"set post_botnick "XXXXXXX"bind join - * bot_checkpostproc bot_checkpost {nick host hand channel} {    global post_nachrichten    global post_botnick    if {[get $nick $post_nachrichten]!=""} {putserv "NOTICE $nick :13Du hast neue Nachrichten!"putserv "NOTICE $nick :Tippe /msg $post_botnick !lese &lt;Passwort&gt; um sie abzurufen."    }}bind msgm - "!neu*" botpost_neuproc botpost_neu {nick host hand text} {    global post_benutzerdatei    set passwort [lindex $text 1]    if {$passwort==""} {putserv "NOTICE $nick : Kein Passwort vergeben!";    } else {if {[get $nick $post_benutzerdatei] == ""} {    add $nick $passwort $post_benutzerdatei} else {    putserv "NOTICE $nick : Deine Mail-Box besteht bereits!"}    }}bind msgm - "!lese*" botpost_leseproc botpost_lese {nick host hand text} {    global post_nachrichten    global post_benutzerdatei    global post_botnick    set passwort [lindex $text 2]    set postnick [lindex $text 1]    if {$passwort == ""} {set passwort [lindex $text 1]set postnick $nick    }    if {[get $postnick $post_benutzerdatei]==""} {putserv "NOTICE $nick :Du hast keine Mail-Box eingerichtet."putserv "NOTICE $nick :Tippe /msg $post_botnick !neu &lt;passwort&gt; um dir eine einzurichten!"    }    if {[get $postnick $post_benutzerdatei]!=$passwort} {putserv "NOTICE $nick : Falsches Passwort!"    } else {set nachricht [get $postnick $post_nachrichten]if {$nachricht == "" } {    putserv "NOTICE $nick : Du hast keine Nachrichten!"} else {    putserv "NOTICE $nick : $nachricht"    remove $postnick $post_nachrichten    set nachricht [get $postnick $post_nachrichten]    while {$nachricht != ""} {putserv "NOTICE $nick : $nachricht"remove $postnick $post_nachrichten    }}    }}bind msg - !botpost botpost_hilfeproc botpost_hilfe {nick host hand text} {    global post_botnick    set abfragender $nick    putserv "NOTICE $abfragender :/msg $post_botnick !neu &lt;passwort&gt; um eine Mail-Box unter deinem gegenwärtigen Nick zu erstellen."    putserv "NOTICE $abfragender :/msg $post_botnick !sende &lt;Nick&gt; &lt;Nachricht&gt; um eine Nachricht zu senden."    putserv "NOTICE $abfragender :/msg $post_botnick !lese &lt;Nickname&gt; &lt;Passwort&gt; um Nachrichten zu lesen."}bind msg - !sende botpost_sendeproc botpost_sende {nick host hand text} {    global post_nachrichten    global post_benutzerdatei    set adressat [lindex $text 0]    set nachricht "$nick sagt: [lrange $text 1 end]"    putserv "NOTICE $nick :Nachricht gesendet!"    putlog "Nachricht an $adressat: $nachricht"    add $adressat $nachricht $post_nachrichten}proc add {key value file} {    exec "touch" $file    set fh [open $file a]    puts $fh "$key =&gt; $value"    close $fh}proc get {key file} {    exec "touch" $file    set fh [open $file r]    set returnword {}    while {![eof $fh]} {set stdin [string trim [gets $fh]]if {[eof $fh]} { break }set breaker [lsearch -exact $stdin "=&gt;"]set getkey [lrange $stdin 0 [expr $breaker - 1]] set getresult [lrange $stdin [expr $breaker + 1] end]if {[string tolower $getkey] == [string tolower $key]} { set returnword $getresult }    }    close $fh    return $returnword}proc remove {word file} {    exec "touch" $file    set fh [open $file r]    set return {}    set del 0    while {![eof $fh]} {set stdin [string trim [gets $fh]]if {[eof $fh]} { break }if {![regexp -nocase $word $stdin]} {    lappend return $stdin} {    incr del 1}    }    close $fh;    set fh [open $file w]    foreach a $return {puts $fh $a    }    close $fh    return $del}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6110">tessa1</a> — Sat Jun 25, 2005 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[inxs]]></name></author>
		<updated>2005-06-25T01:50:40-04:00</updated>

		<published>2005-06-25T01:50:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51336#p51336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51336#p51336"/>
		<title type="html"><![CDATA[submit message!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51336#p51336"><![CDATA[
i want a script that can save message to my eggdrop file when the type <span style="color:red">/msg botnick add text|text</span> to eggdrop.submit, to submit the <span style="color:red">text|text</span>. can anyone give me the code or scripts<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6332">inxs</a> — Sat Jun 25, 2005 1:50 am</p><hr />
]]></content>
	</entry>
	</feed>
