mIRC Home    About    Download    Register    News    Help

Print Thread
#256699 10/02/16 12:49 PM
Joined: Jul 2015
Posts: 13
S
Sissou Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jul 2015
Posts: 13
Hi,

I need your help please ^^
I try to make a script for the bot speak when a person speak in the chat and only if in the topic there is the word "rediffusions" at the first place.

Actualy, I have successfuled for the bot speak when the word in the topic.
The script:

Quote:
on *:TOPIC:#:{
if ($1 == rediffusions) {
.timerredif 0 30 msg # Ceci est une rediffusion !
}
else {
.timerredif off
}
}


But I can't find for do the same only when a people speak.
Thanks if you can help me ^^

Joined: Jul 2015
Posts: 13
S
Sissou Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jul 2015
Posts: 13
I've solved my problem.

Quote:
on *:TOPIC:#:{
if ($1 == rediffusions) {
.write redif.txt Vous regardez actuellement: $hget(mTwitch.StreamState, # $+ .title)
}
else {
.write -d redif.txt
}
}

on *:TEXT:*:#:{
if (%floodredif) { return }
set -u600 %floodredif On
.timerredif 1 30 .play -l1 # redif.txt
}
}

Last edited by Sissou; 10/02/16 04:58 PM.

Link Copied to Clipboard