mIRC Homepage
Posted By: NFNAlexx Pyramid Script - 19/12/14 08:42 AM
Ik this is considered cheating but really it is only for my twitch channel.

I would like to know if someone could help me script a code where when I post PJSalt the bot will make the emoticon PJSalt pyramid sorta like a MACRO.

so example if I posted Salty once the bot would do something like this

PJSalt
PJSalt PJSalt
PJSalt PJSalt PJSalt
PJSalt PJSalt
PJSalt

but one after another in the chat.
Posted By: Panda Re: Pyramid Script - 19/12/14 09:23 AM
Not sure if you wanted the trigger to be PJSalt or Salty, so I went with Salty:

Code:
on *:TEXT:Salty:#: {
  if ($nick == yournick) {
    .msg $chan PJSalt
    .msg $chan PJSalt PJSalt
    .msg $chan PJSalt PJSalt PJSalt
    .msg $chan PJSalt PJSalt
    .msg $chan PJSalt
  }
}

Change, yournick, to whatever your nick will be when you want "Salty" to trigger. Be careful though, this could be classed as a flood and result in your bot getting kicked or banned.

If you want to slow the output ... you can try:

Code:
on *:TEXT:Salty:#: {
  if ($nick == yournick) {
    .timer 1 0 .msg $chan PJSalt
    .timer 1 1 .msg $chan PJSalt PJSalt
    .timer 1 2 .msg $chan PJSalt PJSalt PJSalt
    .timer 1 3 .msg $chan PJSalt PJSalt
    .timer 1 4 .msg $chan PJSalt
  }
}
Posted By: NFNAlexx Re: Pyramid Script - 19/12/14 09:29 AM
Thank you so much and the bot wont get kicked it's a mod lol
Posted By: Exuviax Re: Pyramid Script - 19/12/14 01:59 PM
On Twitch if any user on the site posts more then 30 messages in 15 seconds, it will result in the IP of that user being banned from all twitch chat for 8 hours. This means you and your bot won't be able to send messages in chat, including timing people out.

However if the user is a moderator in the channel, it moves to 100 messages in 15 seconds. After 100 messages in 15 seconds the same as above will happen to your IP.

There is no way around this, and it can not be undone, you will have to wait the 8 hours out.

(It may not seem likely, but if you have a busy chat, and everyone starts spamming it all at once, banned.

User this script to prevent that.

Code:
on *:TEXT:!salty:#: {
  if ((%spam) || ($($+(%,pam.,$nick),2))) { return }
  set -u2 %aspam On
  set -u10 %apispam. $+ $nick On 
  msg # PJSalt
  msg # PJSalt PJSalt
  msg # PJSalt PJSalt PJSalt
  msg # PJSalt PJSalt
  msg # PJSalt
}


This will make sure the bot will not send this message again within 2 seconds of sending it with this line

Code:
  if ((%spam) || ($($+(%,pam.,$nick),2))) { return }
  set -u2 %aspam On


And will make sure the specific user who initiated the command will not be able to do so again within 10 seconds

with this line

Code:
  set -u10 %apispam. $+ $nick On 


If you want to change the time, replace the -u10 or -u2 with the number of seconds you wish to pause the script for.
Posted By: Belhifet Re: Pyramid Script - 19/12/14 05:01 PM
Originally Posted By: Exuviax

Code:
on *:TEXT:!salty:#: {
  if ((%spam) || ($($+(%,pam.,$nick),2))) { return }
  set -u2 %aspam On
  set -u10 %apispam. $+ $nick On   


Uhh.
Posted By: judge2020 Re: Pyramid Script - 22/12/14 01:00 PM
Originally Posted By: Belhifet
Originally Posted By: Exuviax

Code:
on *:TEXT:!salty:#: {
  if ((%spam) || ($($+(%,pam.,$nick),2))) { return }
  set -u2 %aspam On
  set -u10 %apispam. $+ $nick On   


Uhh.

the point of this message is?
Posted By: Exuviax Re: Pyramid Script - 06/01/15 06:00 AM
Oh crap! LOL

Code:
on *:TEXT:!salty:#: {
  if ((%spam) || ($($+(%,spam.,$nick),2))) { return }
  set -u2 %spam On
  set -u10 %spam. $+ $nick On  


My usage was all over the place, make sure all the Variables are the same!

Thanks Belhifet
© mIRC Discussion Forums