| View previous topic :: View next topic |
| Author |
Message |
Elfriede Halfop
Joined: 07 Aug 2007 Posts: 67
|
Posted: Sat Aug 18, 2007 12:49 pm Post subject: Bind Event [ On Text ] with a small DB |
|
|
Hello
Me once again, who needs help ^^
I've this small script. It works. I replace TEXT with whatever i want the Bot to "react" on.
What i wish is, that Op's can add .. using a trigger like:
!add Blubb ( thats instead of the TEXT ) and the Message ( which should come as a PRIVMSG.
This is what i have ^^
| Code: |
bind pubm - "*TEXT*" pub_TEXT
proc pub_TEXT {nick uhost hand chan rest} {
putserv "PRIVMSG $chan : Message.."
return 0
}
|
Hopefully someone can help me again
Thx |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
Elfriede Halfop
Joined: 07 Aug 2007 Posts: 67
|
Posted: Mon Aug 20, 2007 2:10 pm Post subject: |
|
|
Thats what i'm looking for ! Great and Thank you !
What i "wish"
Now the commands is bind on one Word after ther !addcommand, like:
!addcommand test
Is it possible to bind 2 or more Words ? like:
!addcommand test test2
If someone writes in the Channel eg: test test2 OR and thats one more wish^^:
hello you test test2 - so that the position does not matter.
I don't know how much work this is or if it's possible but i would appreciate .. if you'll find time
If i should have used the other thread.. sorry, than i'll delete and post there |
|
| Back to top |
|
 |
|