Hi,
I wanted to give my bot a new feature, where a user could, say
!msg SomeGuy24 Don't forget to check the thing!
and then later on, when SomeGuy24 first says something again in the channel, the bot spits out the message.
[I would just have each username and message written to a txt file and then erased after being sent. Whether this is a good idea or not I'm not sure, and feel free to suggest something better, but this isn't the issue.]
The problem is, I'm not sure how to go about checking if SomeGuy24 has said something, short of scanning every single text input in the channel, like
on *:TEXT:*:#: {
if ($read(msglist.txt,s,$nick) != $null) { /msg #channel $read(msglist.txt,s,$nick) | /write -ds $+ $nick msglist.txt }
}
and while this does
work, it disables every other on-text command my bot has, due to what I'm guessing is some kind of priority issue I don't understand, where I assume the vague on-text is being triggered first and ignoring every other possible command. [I even tried shifting it to the bottom of the script, but that didn't help, ha.]
Any help would be greatly appreciated, whether it be a fix for my silly problem, or a small explanation on how priority works..