Responding to a word, but with conditions - 17/08/15 01:52 PM
Okay, i got a simple bot set up for entertainment value. It mostly greets and responds to a few random words. An example is this:
Currently, if anyone says "CLONE!" anywhere in a sentence, the bot responds. Now, what i want to do is add something that makes it so the script does not activate, or responds with something else, if a another specific word is in the sentence. Example: someone says "I'M A CLONE!" and I want the word "I'M' to be the phrase that triggers either a non-response or a secondary response.
I'm sure an If or Else If belongs in there somewhere, but not sure how to specify where the script should find the secondary word(s).
Code:
on *:text:CLONE!:#:{ describe $chan gets the shotgun ready. }
Currently, if anyone says "CLONE!" anywhere in a sentence, the bot responds. Now, what i want to do is add something that makes it so the script does not activate, or responds with something else, if a another specific word is in the sentence. Example: someone says "I'M A CLONE!" and I want the word "I'M' to be the phrase that triggers either a non-response or a secondary response.
I'm sure an If or Else If belongs in there somewhere, but not sure how to specify where the script should find the secondary word(s).