mIRC Home    About    Download    Register    News    Help

Print Thread
Help with making a Twitch command? #251335 16/02/15 03:02 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
I need a command for a Twitch channel where if I type "!rainbow (example)" into chat, it will proceed with doing /color red then entering and saying /me (example) in the chat. I would like this for red, orange, yellow, green, blue, and purple as well. I am not very good at scripting but if someone could do this for me it would be amazing smile *Note: This is not my channel but a channel I frequently watch*

Last edited by bwttruman; 16/02/15 03:03 AM.
Re: Help with making a Twitch command? [Re: bwttruman] #251336 16/02/15 03:06 AM
Joined: Jun 2014
Posts: 248
B
Belhifet Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
I wouldn't help anyone make a script that does nothing except create chat spam.

Re: Help with making a Twitch command? [Re: Belhifet] #251337 16/02/15 03:13 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
Sorry, I forgot to clarify that I would only be using this when it was allowed to spam. For example, every time this streamer hits another 1k followers, he celebrates and allows chat to spam for hype. Sorry for the confusion, if you still would not like to help me I understand smile

Re: Help with making a Twitch command? [Re: bwttruman] #251338 16/02/15 03:45 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Code:
on *:TEXT:!rainbow:#: {
  if ($nick == bwttruman) {

  .timer 1 1 msg # /color red
  .timer 1 3 describe # WORDS asdasdjadjs
  .timer 1 5 msg # /color blue
  .timer 1 7 describe # WORDS there
  .timer 1 9 msg # /color BlueViolet
  .timer 1 11 describe # WORDS here
  .timer 1 13 msg # /color SeaGreen
  .timer 1 15 describe # GREEN
  }
}


Doesn't seem to work that well since you need a delay or your message won't be sent

Re: Help with making a Twitch command? [Re: Sakana] #251339 16/02/15 04:01 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
Thank you, but is there any way to make it more like a !notice command where I would type for example, "!rainbow 75K HYPE" and in chat in all of the colors it would say 75K HYPE or whatever message I would decide to put there? Also, I have turbo so you can use (#ed1b24 RED) (#f7941d ORANGE) (#f6ee27 YELLOW) (#23b14d GREEN) (#008fd5 BLUE) (#662e91 PURPLE) and no need to worry about delay smile

Last edited by bwttruman; 16/02/15 04:09 AM.
Re: Help with making a Twitch command? [Re: bwttruman] #251340 16/02/15 04:29 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Can you actually have different colors in your text when you're turbo?

The only way to get colored text otherwise is by doing actions (/me) instead of sending normal messages

Re: Help with making a Twitch command? [Re: Sakana] #251341 16/02/15 04:30 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
You can just change your color to any hex code is what I meant :P the /me thing is fine, just can't figure out how to make it so it says whatever word I put "!rainbow (here)"

Re: Help with making a Twitch command? [Re: Sakana] #251342 16/02/15 04:36 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
Code:
 on *:TEXT:!rainbow:#: {
  if ($nick == bwttruman) {

    .timer 1 .01 msg # /color #ed1b24
    .timer 1 .02 describe #  RED
    .timer 1 .03 msg # /color #f7941d
    .timer 1 .04 describe #  ORANGE
    .timer 1 .05 msg # /color #f6ee27
    .timer 1 .06 describe # YELLOW
    .timer 1 .07 msg # /color #23b14d 
    .timer 1 .08 describe # GREEN
    .timer 1 .09 msg # /color #008fd5 
    .timer 1 .11 describe # BLUE
    .timer 1 .12 msg # /color #662e91
    .timer 1 .13 describe # PURPLE
  }
} 
Here is what I did which is the colors and delays I want but I just want to be able to put whatever text I want in all of the messages after !rainbow

Re: Help with making a Twitch command? [Re: Sakana] #251343 16/02/15 04:44 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
Here is an example of what I would like to happen if you are still confused smile

Re: Help with making a Twitch command? [Re: bwttruman] #251344 16/02/15 04:48 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
Or this if you are even still confused smile

Re: Help with making a Twitch command? [Re: bwttruman] #251345 16/02/15 05:34 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Use this: on *:TEXT:!rainbow *:#: {
and this: describe # $2-

Re: Help with making a Twitch command? [Re: Sakana] #251346 16/02/15 05:42 AM
Joined: Feb 2015
Posts: 15
B
bwttruman Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Feb 2015
Posts: 15
THANK YOU SO MUCH, this is exactly what I needed smile

Re: Help with making a Twitch command? [Re: bwttruman] #251378 16/02/15 11:11 PM
Joined: Jan 2014
Posts: 101
M
Majeye Offline
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 101
Keep in mind that if you send 15 messages in a 20 second window, twitch gives you an 8 hour global ban.

Also.. I'm confused as to why these are set on timers? Wouldn't that spam the chat?

Last edited by Majeye; 16/02/15 11:14 PM.
Re: Help with making a Twitch command? [Re: Majeye] #251381 17/02/15 02:47 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Do you know if the 15 messages/20 seconds thing is for a single channel, or is it for all channels you're in combined?


The reason you need timers is because you can't send messages immediately after one another on Twitch, they must be staggered