mIRC Home    About    Download    Register    News    Help

Topic Options
#251335 - 16/02/15 03:02 AM Help with making a Twitch command?
bwttruman Offline
Pikka bird

Registered: 16/02/15
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*


Edited by bwttruman (16/02/15 03:03 AM)

Top
#251336 - 16/02/15 03:06 AM Re: Help with making a Twitch command? [Re: bwttruman]
Belhifet Offline
Fjord artisan

Registered: 26/06/14
Posts: 248
I wouldn't help anyone make a script that does nothing except create chat spam.

Top
#251337 - 16/02/15 03:13 AM Re: Help with making a Twitch command? [Re: Belhifet]
bwttruman Offline
Pikka bird

Registered: 16/02/15
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

Top
#251338 - 16/02/15 03:45 AM Re: Help with making a Twitch command? [Re: bwttruman]
Sakana Offline
Fjord artisan

Registered: 19/09/14
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

Top
#251339 - 16/02/15 04:01 AM Re: Help with making a Twitch command? [Re: Sakana]
bwttruman Offline
Pikka bird

Registered: 16/02/15
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


Edited by bwttruman (16/02/15 04:09 AM)

Top
#251340 - 16/02/15 04:29 AM Re: Help with making a Twitch command? [Re: bwttruman]
Sakana Offline
Fjord artisan

Registered: 19/09/14
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

Top
#251341 - 16/02/15 04:30 AM Re: Help with making a Twitch command? [Re: Sakana]
bwttruman Offline
Pikka bird

Registered: 16/02/15
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)"

Top
#251342 - 16/02/15 04:36 AM Re: Help with making a Twitch command? [Re: Sakana]
bwttruman Offline
Pikka bird

Registered: 16/02/15
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

Top
#251343 - 16/02/15 04:44 AM Re: Help with making a Twitch command? [Re: Sakana]
bwttruman Offline
Pikka bird

Registered: 16/02/15
Posts: 15
Here is an example of what I would like to happen if you are still confused smile

Top
#251344 - 16/02/15 04:48 AM Re: Help with making a Twitch command? [Re: bwttruman]
bwttruman Offline
Pikka bird

Registered: 16/02/15
Posts: 15
Or this if you are even still confused smile

Top
#251345 - 16/02/15 05:34 AM Re: Help with making a Twitch command? [Re: bwttruman]
Sakana Offline
Fjord artisan

Registered: 19/09/14
Posts: 259
Use this: on *:TEXT:!rainbow *:#: {
and this: describe # $2-

Top
#251346 - 16/02/15 05:42 AM Re: Help with making a Twitch command? [Re: Sakana]
bwttruman Offline
Pikka bird

Registered: 16/02/15
Posts: 15
THANK YOU SO MUCH, this is exactly what I needed smile

Top
#251378 - 16/02/15 11:11 PM Re: Help with making a Twitch command? [Re: bwttruman]
Majeye Offline
Vogon poet

Registered: 21/01/14
Posts: 101
Loc: MN, USA
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?


Edited by Majeye (16/02/15 11:14 PM)

Top
#251381 - 17/02/15 02:47 AM Re: Help with making a Twitch command? [Re: Majeye]
Sakana Offline
Fjord artisan

Registered: 19/09/14
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

Top