This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Tue Dec 18, 2007 2:44 am
I'm trying to make an action script on certain words said and bot will display a random message from text file..
I have tried this bind:
bind act - "*hey*" acttext
Tried a few other ways but no go
Zircon
Op
Posts: 191 Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal
Post
by Zircon » Tue Dec 18, 2007 3:28 am
Hi there
I think that bind act is for situations when someone does an action on the botnet.
I think you want to use this : bind ctcp - ACTION
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Tue Dec 18, 2007 3:49 am
Thats where I get confused when I read help document because I'm clueless where to set it to go off on "*hey*" since ACTION is going there instead.
Zircon
Op
Posts: 191 Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal
Post
by Zircon » Tue Dec 18, 2007 4:00 am
I think that in the body or your proc acttext, you have to make a test like this :
Code: Select all
if [string match -nocase "*hey*" $arg]
I m not a coder, but some months ago i asked for a script to prevent flood by actions, Sir_Fz gave me this code, it can help you to see how to use the bind with action :
http://forum.egghelp.org/viewtopic.php? ... ind+action
Good luck