Here is Micha's mIRC script
2 posters
Here is Micha's mIRC script
;myscript to use Micha's C++ brain in mIRC
on *:TEXT:*:#:{
;send new request to file
./fopen -o to-chloe to-chloe.txt
;write TEXT to file
.fwrite -n to-chloe $1-
.fclose to-chloe
./fopen -o nickfile nickfile.txt
.fwrite -n nickfile $nick
.fclose nickfile
var %bench.time = $ticks
var %bench.mark = 0
while ($calc($ticks - %bench.time) < 5500) {
inc %bench.mark
}
;get response
.fopen from-chloe from-chloe.txt
var %reply = $fread(from-chloe)
/msg # $nick : %reply
;echo %reply
.fclose from-chloe
}
on *:TEXT:*:#:{
;send new request to file
./fopen -o to-chloe to-chloe.txt
;write TEXT to file
.fwrite -n to-chloe $1-
.fclose to-chloe
./fopen -o nickfile nickfile.txt
.fwrite -n nickfile $nick
.fclose nickfile
var %bench.time = $ticks
var %bench.mark = 0
while ($calc($ticks - %bench.time) < 5500) {
inc %bench.mark
}
;get response
.fopen from-chloe from-chloe.txt
var %reply = $fread(from-chloe)
/msg # $nick : %reply
;echo %reply
.fclose from-chloe
}
Principal Investigator- Posts : 3
Join date : 2011-03-25
Re: Here is Micha's mIRC script
So its brain is stored in a file that interacts with mIRC, instead of connecting itself? Never seen that before.
reply
Yea. All this script does is wait for something to be said, then sends it and the name of the sender to files. Then it waits for 5 1/2 seconds while the C++ program works on the data. Then it reads the answer and sends it to the channel.
Steve
Steve
Principal Investigator- Posts : 3
Join date : 2011-03-25
Permissions in this forum:
You cannot reply to topics in this forum
|
|