Hey there! New here, never have done anything with mirc :P

So I have a bunch of keys for a beta. I want my bot to whisper a key to people whenever they type in !Key.

I have all the keys in a text file. So my idea if for the script to whisper them a key from the first line of the text file then delete the first line of the text file, so that when someone else types in !key, they get the next key.

I got the whisper from a text file working, but not too sure how to set up the delete part?

Any help is greatly appreciated, thanks! laugh

Quote:
on *:text:!key:#:{
msg $nick $read(C:\Users\Owner\AppData\Roaming\mIRC\keys.txt, n, 1)
/write -dl1 C:\Users\Owner\AppData\Roaming\mIRC\keys.txt
}