| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Dec 18, 2007 2:44 am Post subject: help with action binds |
|
|
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  |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Tue Dec 18, 2007 3:28 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Dec 18, 2007 3:49 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Tue Dec 18, 2007 4:00 am Post subject: |
|
|
I think that in the body or your proc acttext, you have to make a test like this :
| Code: | | 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?t=13689&highlight=bind+action
Good luck |
|
| Back to top |
|
 |
|