mIRC Home    About    Download    Register    News    Help

Print Thread
a word message timeout filter script? #266757 28/01/20 03:06 AM
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...

Re: a word message timeout filter script? [Re: dah] #268969 23/05/21 08:31 AM
Joined: May 2021
Posts: 2
N
noelmando Offline
Bowl of petunias
Offline
Bowl of petunias
N
Joined: May 2021
Posts: 2
Code
on *:TEXT:your trigger word:#: {


    .msg # .timeout 120 $nick 
  
}

Re: a word message timeout filter script? [Re: noelmando] #268971 23/05/21 03:47 PM
Joined: Jan 2012
Posts: 171
Epic Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2012
Posts: 171
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




πŸ…ΈπŸ†πŸ…² - 𝔦'𝔱𝔰 𝔸 π•‚π–ŽΙ΄π™™ ᴏ𝙛 π•„π™–π–Œπ™žπ™˜
Re: a word message timeout filter script? [Re: dah] #268972 23/05/21 04:36 PM
Joined: Jan 2012
Posts: 171
Epic Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2012
Posts: 171
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.



πŸ…ΈπŸ†πŸ…² - 𝔦'𝔱𝔰 𝔸 π•‚π–ŽΙ΄π™™ ᴏ𝙛 π•„π™–π–Œπ™žπ™˜
Re: a word message timeout filter script? [Re: Epic] #268973 23/05/21 04:53 PM
Joined: Jan 2004
Posts: 1,327
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,327
Twitch presumably has a .timeout command. They don't want a timer to kick people.