mIRC Home    About    Download    Register    News    Help

Print Thread
#132988 16/10/05 10:50 AM
Joined: Aug 2005
Posts: 3
F
farky Offline OP
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Aug 2005
Posts: 3
hi
i need help with making a talk-bot
the bot will log everything to a file, for example 1.txt, and then randomly it will say it.

Code:
/timer1 0 100 /msg #xy $read(1.txt)  

so i need help with :
how to make the bot to log messages to a file, and how to do that, to say that in random seconds, for example 100-200.
thx for help

PS: i found how to do that, to log it, but my bot writes <Nickname> too, but i dun want it!

Last edited by farky; 16/10/05 10:57 AM.

-farky
#132989 16/10/05 11:14 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
on *:text:*:*: { write 1.txt $1- }


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#132990 16/10/05 03:24 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You should use $!read(1.txt,n) so identifiers in the text aren't evaluated.


Link Copied to Clipboard