quote:
Originally posted by -dt-
quote:
Originally posted by Mattike
var gotThanks = msg.indexOf("thanks");
var gotThnx = msg.indexOf("thnx");
var gotThankyou = msg.indexOf("thank u");
if(gotThanks != -1 || gotThnx != -1 || gotThankyou) {
ChatWnd.SendMessage("No problem, " + User + "! ");
}
thats got to be the worst code Ive ever seen , even segosa wouldnt do that :--o.
* segosa slaps -dt-.
Anyway, I would even suggesdt making a txt file or something in the format
word1:word2:word3:wordN|reply
and parsing that, seeing if any of the words are in the msg and then replying with reply. (In fact that's the format I used for an autoresponder in mIRC script.)