mIRC Home    About    Download    Register    News    Help

Print Thread
[Twitch Bot]flood protection (6 lines) #258770 26/08/16 02:59 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
i dont want this floods.6 lines only.
can i give timeout 600 seconds?


i dont want use /slow mode.

i need remote code 6 lines timeout..

Re: [Twitch Bot]flood protection (6 lines) [Re: x3pos] #258846 04/09/16 09:43 AM
Joined: Sep 2016
Posts: 15
T
Tulga Offline
Pikka bird
Offline
Pikka bird
T
Joined: Sep 2016
Posts: 15
Code:
on *:text:*:#: {
  if ($nick == %spamnick) {
    inc %spamtime
    if (%spamtime == 7) { 
      msg # .timeout $nick 600
      msg # $nick you're spamming too fast. slow down!
      %spamtime = 1
    }

  }
  else {
    %spamnick = $nick
    %spamtime = 1
  }
}


there you go smile

Re: [Twitch Bot]flood protection (6 lines) [Re: x3pos] #258847 04/09/16 10:01 AM
Joined: Sep 2016
Posts: 15
T
Tulga Offline
Pikka bird
Offline
Pikka bird
T
Joined: Sep 2016
Posts: 15
actually use that

Code:
on *:text:!timeout*:#: {
  if ($nick isop $chan) {
    if ($2 == line) {
      if ($3 isnum) {
        %spamline = $abs($int($3))
        msg # Spamline is now $abs($int($3)) $+ . Messaging $abs($int($3)) times in a row will timeout you!
      }
      else { msg # $3 is not a number! | return } 
    }
    elseif ($2 == time) {
      if ($3 isnum) {
        %spamtime = $abs($int($3))
        msg # Timeout time is now $abs($int($3)) $+ !
      }
      else { msg # $3 is not a number! | return }
    }
    elseif ($2 == message) {
      %spammessage = $3-
      msg # Timeout message is now : $3- 
    }
    else { msg # insufficient parameters. !timeout <line,time,message> <parameter> }
  }
  else {
    msg # You dont have permission to do that!
  }
}

on *:text:*:#: {
  if ($nick isop $chan) { return }
  if ($nick == %spamnick) {
    inc %spamlines
    if (%spamlines == %spamline) { 
      msg # .timeout $nick %spamtime %spammessage
      msg # $nick you're spamming too fast. slow down!
      %spamlines = 1
    }

  }
  else {
    %spamnick = $nick
    %spamlines = 1
  }
}


with this you can set timeout line , message and timeout time
so your mods can change it while you're busy if needed too

edit: but you need to set !timeout line,message and time before first use! or it wont work

Last edited by Tulga; 04/09/16 10:08 AM.
Re: [Twitch Bot]flood protection (6 lines) [Re: Tulga] #258852 04/09/16 06:29 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
thank you for this.
can you example for this commands?

Re: [Twitch Bot]flood protection (6 lines) [Re: x3pos] #258854 04/09/16 10:41 PM
Joined: Sep 2016
Posts: 15
T
Tulga Offline
Pikka bird
Offline
Pikka bird
T
Joined: Sep 2016
Posts: 15






do line 6 if you want to timeout for 6 lines > !timeout line 6

!timeout message is timeout reason or timeout message.

!timeout time is timeout amount if you want to timeout 600 sec do that 600.

is that what you need ? smile


Last edited by Tulga; 04/09/16 10:44 PM.
Re: [Twitch Bot]flood protection (6 lines) [Re: Tulga] #258860 05/09/16 06:17 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
wow thank you dude.

Re: [Twitch Bot]flood protection (6 lines) [Re: x3pos] #258862 05/09/16 08:24 PM
Joined: Sep 2016
Posts: 15
T
Tulga Offline
Pikka bird
Offline
Pikka bird
T
Joined: Sep 2016
Posts: 15
you're welcome

Re: [Twitch Bot]flood protection (6 lines) [Re: Tulga] #258879 07/09/16 12:45 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
can you make word repetions limit commands?

Re: [Twitch Bot]flood protection (6 lines) [Re: x3pos] #258881 07/09/16 03:07 PM
Joined: Sep 2016
Posts: 15
T
Tulga Offline
Pikka bird
Offline
Pikka bird
T
Joined: Sep 2016
Posts: 15
what do you mean by that ?
can you be more specific

Re: [Twitch Bot]flood protection (6 lines) [Re: Tulga] #258887 08/09/16 01:28 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
viewer1:like
viewer2:random message
viewer1:likelike
viewer3:random message
viewer1:likelikelike
...
i dont like repetion words(exp:like)