mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2014
Posts: 5
O
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
O
Joined: Feb 2014
Posts: 5
I have a large twitch script that contains "on text" events. I am really confused on how to add aliases (?) to this. I just need to keep it from entering 20 commands within 30 seconds.

Here is the pastebin of the script since its large to put on forums http://pastebin.com/FUSJqEbF

Last edited by Orangefanta; 06/04/14 06:52 AM.
Joined: Mar 2014
Posts: 215
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Just something about your script:
Try lowering the flood time for regular commands
Code:
on *:TEXT:!DMbrandon:#: { 
  if ((%flood!DMbrandon) || ($($+(%,!DMbrandonflood.,$nick),2))) { return } 
  set -u120  %flood!DMbrandon On
  set -u120  %flood!DMbrandon. $+ $Nick On
  msg $chan If you enjoy DMbrandon you can subscribe to him at http://www.youtube.com/dmbrandon Follow him at https://twitter.com/juiceDiem and also watch him stream everyday from 7-10pm US eastern on http://www.twitch.tv/smitegame $+
}

I'd say to change
Code:
  set -u120  %flood!DMbrandon On
to something a little lower
Code:
  set -u10  %flood!DMbrandon On
this will allow everyone to use this command after 10 seconds but a single user cannot spam it until 2 minutes passes every time


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Feb 2014
Posts: 5
O
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
O
Joined: Feb 2014
Posts: 5
Originally Posted By: judge2020
Just something about your script:
Try lowering the flood time for regular commands
Code:
on *:TEXT:!DMbrandon:#: { 
  if ((%flood!DMbrandon) || ($($+(%,!DMbrandonflood.,$nick),2))) { return } 
  set -u120  %flood!DMbrandon On
  set -u120  %flood!DMbrandon. $+ $Nick On
  msg $chan If you enjoy DMbrandon you can subscribe to him at http://www.youtube.com/dmbrandon Follow him at https://twitter.com/juiceDiem and also watch him stream everyday from 7-10pm US eastern on http://www.twitch.tv/smitegame $+
}

I'd say to change
Code:
  set -u120  %flood!DMbrandon On
to something a little lower
Code:
  set -u10  %flood!DMbrandon On
this will allow everyone to use this command after 10 seconds but a single user cannot spam it until 2 minutes passes every time

That doesn't help against the fact if my bot enters more than 20 commands in 30 seconds its will get a global ban and its in channels that get 2k+ viewers.

Last edited by Orangefanta; 06/04/14 02:36 PM.
Joined: Mar 2014
Posts: 215
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Ok but having the cooldown for the user being the same as the cooldown for everyone deems it pointless.

Anyways...
If you're wanting to add other commands that use aliases you can click new while on the remote tab and choose which file you want to edit by clicking view in the top.


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball

Link Copied to Clipboard