mIRC Home    About    Download    Register    News    Help

Print Thread
#249844 19/12/14 08:42 AM
Joined: Dec 2014
Posts: 6
N
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Dec 2014
Posts: 6
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.

NFNAlexx #249847 19/12/14 09:23 AM
Joined: Nov 2014
Posts: 32
P
Ameglian cow
Offline
Ameglian cow
P
Joined: Nov 2014
Posts: 32
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
  }
}

Panda #249848 19/12/14 09:29 AM
Joined: Dec 2014
Posts: 6
N
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Dec 2014
Posts: 6
Thank you so much and the bot wont get kicked it's a mod lol

NFNAlexx #249850 19/12/14 01:59 PM
Joined: Mar 2014
Posts: 65
E
Babel fish
Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
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.

Last edited by Exuviax; 19/12/14 01:59 PM.

I do things with stuff that makes other things do stuff.
Exuviax #249853 19/12/14 05:01 PM
Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Originally Posted By: Exuviax

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


Uhh.

Belhifet #249904 22/12/14 01:00 PM
Joined: Mar 2014
Posts: 215
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
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?


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Mar 2014
Posts: 65
E
Babel fish
Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
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

Last edited by Exuviax; 06/01/15 06:01 AM.

I do things with stuff that makes other things do stuff.

Link Copied to Clipboard