mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2020
Posts: 17
D
dah Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jan 2020
Posts: 17
Hey there guys, does anybody know the script for a word message timeout script that actually works if so please let me know?
If you know a word timeout message script that timeouts non-capital letters because I already got a script that timeouts capital letter?


For example, it will timeout users in a twitch chat when someone mentions words like scumbag, gay, idiot etc...

Joined: May 2021
Posts: 2
N
Bowl of petunias
Offline
Bowl of petunias
N
Joined: May 2021
Posts: 2
Code
on *:TEXT:your trigger word:#: {


    .msg # .timeout 120 $nick 
  
}

Joined: Jan 2012
Posts: 299
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2012
Posts: 299
The command "/timer" in syntax mIRC client is placed first before all other commands to delay the execution of the command for the specified time.

For example:
Code
/timer 1 30 /msg #channel This message was sent with a delay of 30 seconds.


Familiarize the correct syntax can in the reference: https://en.wikichip.org/wiki/mirc/commands/timer or https://www.mirc.com/help/timer




🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Joined: Jan 2012
Posts: 299
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2012
Posts: 299
If I understood your request correctly, then you probably wanted to see something like this code:

Code
#####################################################################
#   Name: Check Bad Word v1.0
#   Author: Epic (epicnet@mail.ru, http://epicnet.ru)
#   Description: Checks the entire text of the channel for bad words and kick if found.
#####################################################################

on *:TEXT:*:#:{
  if ($badword($1-)) {
    .timerBADWORD 1 5 bw_kick $chan $nick $v1
  }
}
alias -l bw_kick {
  .kick $1 $2 You are a $+(",$3,") yourself!!!
}
alias -l badword {
  var %bw scumbag,fool,moron,idiot,imbecile,gay,freak
  var %bw_text $remove($strip($1-),?,!,:,;,",.,-,_,$chr(40),$chr(41)$chr(44))
  var %i 1 | while (%i <= $numtok(%bw,44)) { var %bwi $gettok(%bw,%i,44) | if ($istok(%bw_text,%bwi,32)) { return %bwi } | inc %i }
}


Note; This script will work in standard (classic) IRC chats. If your conditions are non-standard, then there is no guarantee that the code will work.



🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Twitch presumably has a .timeout command. They don't want a timer to kick people.


Link Copied to Clipboard