mIRC Homepage
Posted By: Orangefanta I need help adding aliases to a script - 06/04/14 06:42 AM
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
Posted By: judge2020 Re: I need help adding aliases to a script - 06/04/14 07:33 AM
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
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.
Posted By: judge2020 Re: I need help adding aliases to a script - 06/04/14 02:55 PM
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.
© mIRC Discussion Forums