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

	<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>2003-01-17T06:21:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-17T06:21:28-04:00</updated>

		<published>2003-01-17T06:21:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15458#p15458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15458#p15458"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15458#p15458"><![CDATA[
I've found a script called ai.tcl. It does everything I want.<br>But it one thing it doesn't:<br><br>I want that the script answer in more than one line. Would you be so kind and say me, how can I make it so?<br><br>And yes, I'am a fool and very very stupid.<br><div class="codebox"><p>Code: </p><pre><code>#################################### Ai.tcl by KuNgFo0 (#eggfaq@efnet)#VERSION 0.3#DESCRIPTION Responds to certain words said in the set channels.# Set the next lines as the triggers and random responses you want# (wildcards may be used)set ai_data { {"*trigger #1A*" "*trigger #1B*"} {  "trigger #1 response #1"  "trigger #1 response #2" } {"*trigger #2A*" "*trigger #2B*"} {  "trigger #2 response #1"  "trigger #2 response #2" } {"Hello" "Hi" "Hey"} {  "Hey what's up, $nick?"  "Yo"  "Hello!" } {"What time is it?" "What is the time?" "What's the time?" "Anyone have the time?"} {  "$nick, it's [clock format [clock seconds]]" }}# Set the next line as the channels you want to run inset ai_chans "#testchannel1 #testchannel2"proc pub_ai {nick uhost hand chan arg} { global ai_data ai_chans botnick if {(([lsearch -exact [string tolower $ai_chans] [string tolower $chan]] != -1) || ($ai_chans == "*")) &amp;&amp; (![matchattr $hand b]) &amp;&amp; ($nick != $botnick)} {  foreach {triggers responses} $ai_data {   foreach trigger $triggers {    if {[string match [string tolower $trigger] [string tolower $arg]]} { putserv "PRIVMSG $chan :[subst [lindex $responses [rand [llength $responses]]]]" ; return }   }  } }}bind pubm - * pub_aiputlog "*** Ai.tcl 0.3 by KuNgFo0 loaded"</code></pre></div>Thanks for help.<p>Statistics: Posted by Guest — Fri Jan 17, 2003 6:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-01-16T15:54:21-04:00</updated>

		<published>2003-01-16T15:54:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15425#p15425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15425#p15425"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15425#p15425"><![CDATA[
he already told you what to do.<br>here's some help;<br><br>bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>       procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Thu Jan 16, 2003 3:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-16T11:31:11-04:00</updated>

		<published>2003-01-16T11:31:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15413#p15413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15413#p15413"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15413#p15413"><![CDATA[
Thank you, ppslim.<br><br>But I have so much trouble with my english. Can you give me a correct working example for that:<br><br>users types !ip<br><br>and bot answer with the notice : The Server-IP is 1.2.3.4:5<br><br>Thanks a lot for helping me.<p>Statistics: Posted by Guest — Thu Jan 16, 2003 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-16T11:14:08-04:00</updated>

		<published>2003-01-16T11:14:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15409#p15409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15409#p15409"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15409#p15409"><![CDATA[
This has resulted in a number off issues that will most likely break most or even all your loaded scripts.<br><br>First off, you are using the PUB type bind. In your proc's, you are using the format<br><blockquote class="uncited"><div>proc help {nick host handle text} {</div></blockquote>There are not enough arguments here, to accept all information sent. I can allmost gurentee the message you get here is <blockquote class="uncited"><div>Called "help" with too many arguments</div></blockquote>See tcl-commans.doc, for the required amount of arguments and there meaning, for the PUB and other type binds.<br><br>In one of your commands, you create a proc called "channel". This command is allready in use by eggdrop. As such, any script trying to use it will break.<br><br>When naiming your commands, give them a unique name.<br><br>When I create a script, I use <div class="codebox"><p>Code: </p><pre><code>proc scriptname:purpose {args} {  body}</code></pre></div>Replaceing "scriptname" with the name of the script, and "purpose" with a single word purpose for the function.<br><br>This will allow for a unique naming scripture, free from conflicts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 16, 2003 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-16T10:29:05-04:00</updated>

		<published>2003-01-16T10:29:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15403#p15403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15403#p15403"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15403#p15403"><![CDATA[
Never mind:<br><br>I've written something by my self like that:<br><br>putlog "Autotext script version 0.0.1b by |Plexton| loaded"<br>putlog "use !help in channel for comands."<br><br>proc commandchar {} {<br>return "!"<br>}<br><br>bind pub - [commandchar]help help<br>bind pub - [commandchar]ip ip<br>bind pub - [commandchar]homepage homepage<br>bind pub - [commandchar]hp homepage<br>bind pub - [commandchar]channel channel<br><br>proc help {nick host handle text} {<br>putserv "notice $nick : Mit den folgenden Befehlen kannst Du folgende Infos abrufen:"<br>putserv "notice $nick : ------------------------------------------------------------"<br>putserv "notice $nick : [commandchar]help - zeigt Dir das hier <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">"<br>putserv "notice $nick : [commandchar]ip - zeigt Dir die IP's unserer Server"<br>putserv "notice $nick : [commandchar]homepage oder [commandchar]hp - zeigt Dir die urls der Clanseite(n)"<br>putserv "notice $nick : ------------------------------------------------------------"<br>putserv "notice $nick : Wenn Du weitere Befehle vermisst oder Ergänzungen hast"<br>putserv "notice $nick : dann poste sie ins Forum:"<br>putserv "notice $nick : <a href="http://www.jedi-power.de/phpBB2/viewtopic.php?t=14" class="postlink">http://www.jedi-power.de/phpBB2/viewtopic.php?t=14</a>"<br>putserv "notice $nick : ------------------------------------------------------------"<br>}<br><br>proc ip {nick host handle text} {<br>putserv "notice $nick : Die aktuellen Server-IP's lauten:"<br>putserv "notice $nick : ------------------------------------------------------"<br>putserv "notice $nick : Jedi-Server:"<br>putserv "notice $nick : bis zum 31.01.03 213.146.190.160:27020 20 slots public"<br>putserv "notice $nick : 62.93.205.133:27015 20 slots public"<br>putserv "notice $nick : ------------------------------------------------------"<br>putserv "notice $nick : STD-Server"<br>putserv "notice $nick : bis zum 31.01.03 213.146.190.167:27005 20 slots public"<br>putserv "notice $nick : 62.93.205.134:27015 20 slots public"<br>putserv "notice $nick : ------------------------------------------------------"<br>}<br><br>proc homepage {nick host handle text} {<br>putserv "notice $nick : Die urls der Clanseiten lauten:"<br>putserv "notice $nick : ---------------------------------"<br>putserv "notice $nick : JEDI-HP: <a href="http://www.jedi-power.de" class="postlink">www.jedi-power.de</a>"<br>putserv "notice $nick : STD--HP: <a href="http://www.std-counterstrike.de" class="postlink">www.std-counterstrike.de</a>"<br>putserv "notice $nick : ---------------------------------"<br><br>}<br><br>proc channel {nick host handle text} {<br>putserv "notice $nick : Die irc-channels lauten:"<br>putserv "notice $nick : -------------------------------------"<br>putserv "notice $nick : JEDI-Channel #JEDI-Power"<br>putserv "notice $nick : STD--Channel #-=\]STD-\[=-Clan"<br>putserv "notice $nick : JEDI-Live    #JEDI-Server ; in Arbeit"<br>putserv "notice $nick : -------------------------------------"<br>}<br><br>But it does not work.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br>Could anybody say me, what I've made wrong?<br><br>thx<p>Statistics: Posted by Guest — Thu Jan 16, 2003 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-01-16T09:54:31-04:00</updated>

		<published>2003-01-16T09:54:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15401#p15401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15401#p15401"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15401#p15401"><![CDATA[
yes the things you want are very possible :&gt;<br>so i suggest you start reading some tcl guides.<br><br>or search for a "public command" script<br>which already does those things.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Thu Jan 16, 2003 9:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-16T04:44:54-04:00</updated>

		<published>2003-01-16T04:44:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15377#p15377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15377#p15377"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15377#p15377"><![CDATA[
Thank you, spock!<br><br>But what is, when I want to use many commands like !ip, !homepage !news, !member, etc...<br><br>Is is possible to tell the tcl-script to read out an extern text-file and put this result into the bot-reply?<br><br>When I do it as you written it down above, I must go into the script to make changes and this looks a little bit complicated, when I have to change something.<p>Statistics: Posted by Guest — Thu Jan 16, 2003 4:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-01-15T17:43:02-04:00</updated>

		<published>2003-01-15T17:43:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15364#p15364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15364#p15364"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15364#p15364"><![CDATA[
here is such a script in a very simple form.<br>other things you would probably want in it<br>are rate-limiting and custom access-flags.<br><br>bind pub - !ip pub:!ip<br><br>proc pub:info {nick host handle chan text} {<br>       set gameserver "1.2.3.4"<br>       puthelp "PRIVMSG $nick :$gameserver"<br>       putlog "$nick ($handle) requested gameserver on $chan"<br>       }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Wed Jan 15, 2003 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-15T16:30:35-04:00</updated>

		<published>2003-01-15T16:30:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15361#p15361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15361#p15361"/>
		<title type="html"><![CDATA[Autotext-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15361#p15361"><![CDATA[
Where can I find a autotext-script?<br><br>for exemple:<br><br>The eggrop reply the ip of our gamingserver, when an user types !ip.<br><br>thx 4 reply<p>Statistics: Posted by Guest — Wed Jan 15, 2003 4:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
