quote:
Originally posted by vladinator
1) When you !help it spams it alot.
2) If you say !help in the middle of a sentence, it still works.
3) If you use !help and the !help contains !song and !sendsong it registers it and you get a loop of the commands.
use a regular expression such as:
/^!command$/i
the ^ means the expression should only match strings starting at the beginning of the message
the $ means the same but for the end
or you could just use plain text match such as:
if(Message == '!song')....
but it wouldnt be case insensitive then...