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

	<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>2002-09-19T12:46:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-19T12:46:06-04:00</updated>

		<published>2002-09-19T12:46:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11110#p11110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11110#p11110"/>
		<title type="html"><![CDATA[simple code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11110#p11110"><![CDATA[
Umm, you would need to provide a bit more info is someone is going to write that script for you (I am not going to , sorry). However, here are some pointers:<br><br>1) Create a trigger that will call procedure checkforx upon reciving of a msg to bot that starts with !say:<br>     bind msg - "!say" checkforx<br><br><br>2) in procedure checkforx you can check if the text that has been sent contains letter x (example given is case insensitive):<br><br>     if {[regexp -nocase x $text]} { x was was found say it on channel } else {<br>     x was not found... msg user to change the text<br>     }<br><br>To see how to send text to channel or to a specific user, or to see exact syntax for declaration of procedure that will be called by bind msg - consult doc/tcl-commands.doc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Thu Sep 19, 2002 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-18T01:48:39-04:00</updated>

		<published>2002-09-18T01:48:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11041#p11041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11041#p11041"/>
		<title type="html"><![CDATA[simple code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11041#p11041"><![CDATA[
hi...i want to know how to make a tcl that allow user to send my bot a text<br>and then my bot will say that text to the channel<br>the user use command like this:<br>/msg mybot !say saxophone<br><br>but if the text/sentence dont have "x" alphabeth/character the bot will send the nick "sorry, your sentence doesnt contain x character, please type another sentence/word that have an "x" character on it<br><br><br>thx for anyhelp, this maybe a simple script, but i dont know how to make the code, so i need your help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Wed Sep 18, 2002 1:48 am</p><hr />
]]></content>
	</entry>
	</feed>
