mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2004
Posts: 1
V
Mostly harmless
OP Offline
Mostly harmless
V
Joined: Oct 2004
Posts: 1
Kinda new to this mIRC scripting malarky an having some trouble reading from a file.

Trying to script a bot to say a line from a text file when a keyword is said in chat with the following code:

on *:text:*test*:#mychannel:{ msg $chan $read $mircdir\mod.txt }

However, mIRC just replies with the error message:
/msg INCORRECT PARAMATERS

Where am I going wrong?

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Try $read($+(",$mircdir,mod.txt"))


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard