Author |
Message |
Kitsune (^) Novice

Age:33 Gender: Joined: Sep 29 2005 Posts: 42 Location: Between Heaven and Hell. Offline
|
Posted: Mon Jan 09, 2006 6:58 am Post subject: Bot wildcard functions... |
 |
|
|
|
Well, I have wanted to (for fun.. T_T..) make a bot which annoys the crap out of people when you pm them.. but not when you !cmd them.. I need a wildcard functon in which you know... does the wildcard thingie..
-Kit _________________ If (Pi=Infinite 3 Infinitity)
Carpe diem!
Know thyself. |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Mon Jan 09, 2006 3:29 pm Post subject: |
 |
|
|
|
Well, it depends on the bot core. Most bot cores had a function for registering commands (!help, etc) and most also have generic handlers for messages. I don't know how some bot cores handle this, but mine would not send the generic message event if a command was handled first. Thus, a simple 'if privage message and first letter is !' test would be a wild card equiviant of what you want. |
|
Back to top |
|
 |
|