mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
I have made a chat bot for twitch.tv (looks like it's becoming a more popular thing here) and i am wanting to add a command like:
on msg from $nick-twitchnotify-
msg $chan -Welcome new sub to the panther army!-
}
I know how to do all that stuff except the on certain nickname command.

If i could get any help that would be great smile


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
nevermind i just learned wildcards:
on *:text:*bye*:#: {
anti-spam stuff
msg $chan We're sorry to see $nick go frown
}
and modified it to-
on *:text:*has just subscribed!:#: {
msg $chan Welcome the new suscriber to the panther army!
}

w
I'm pretty much done but a way to grab the first work (the nick that subscribed) and put it in the message the bot sends out.

https://forums.mirc.com/ubbthreads.php/topics/244635/Basic_scripting_for_Twitch.tv_#Post244635

Last edited by judge2020; 21/03/14 05:56 PM. Reason: added source

#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Mar 2014
Posts: 42
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Mar 2014
Posts: 42
If im correct you want to welcome a new subscriber, including the sub's username? Here's an example script that i use. i got it from http://www.figgityfigs.com/?p=142

on 1:text:*subscribed*:#sevadus:{
if ($nick == twitchnotify) { msg $chan sevOtterBro Welcome $$1! <3 }
}


Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Originally Posted By: Sjoepele
If im correct you want to welcome a new subscriber, including the sub's username? Here's an example script that i use. i got it from http://www.figgityfigs.com/?p=142

on 1:text:*subscribed*:#sevadus:{
if ($nick == twitchnotify) { msg $chan sevOtterBro Welcome $$1! <3 }
}

thanks that worked smile


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Apr 2014
Posts: 33
B
Ameglian cow
Offline
Ameglian cow
B
Joined: Apr 2014
Posts: 33
on 1:TEXT:*:#:{
if $nick = twitchnotify && subscribed isin $1- {
/msg $chan New Subscriber! Everyone give $$1 a warm welcome to the Panther Loyal Army!
/halt
}
}

this only works currently if twitchclient is set to 3

/raw twitchclient 3

Joined: Apr 2014
Posts: 4
J
Self-satisified door
Offline
Self-satisified door
J
Joined: Apr 2014
Posts: 4
on 1:TEXT:*:#:{
if $nick = twitchnotify && subscribed isin $1- {
/msg $chan New Subscriber! Everyone give $$1 a warm welcome to the Panther Loyal Army!
/halt
}
}

When i tried this it didn't work. How do i make it work again?

Joined: Apr 2014
Posts: 191
B
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
Did you set twitchclient 3?

Originally Posted By: bl968

this only works currently if twitchclient is set to 3

/raw twitchclient 3

Joined: Nov 2013
Posts: 19
D
Pikka bird
Offline
Pikka bird
D
Joined: Nov 2013
Posts: 19
I want to do this but for followers since i am not a twitch partner.
How would i do this?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Apr 2014
Posts: 4
J
Self-satisified door
Offline
Self-satisified door
J
Joined: Apr 2014
Posts: 4
where do you put the /raw twitchclient 3.. can anyone help im confessed


Joined: Nov 2013
Posts: 19
D
Pikka bird
Offline
Pikka bird
D
Joined: Nov 2013
Posts: 19
Just type it in...

Joined: Apr 2014
Posts: 4
J
Self-satisified door
Offline
Self-satisified door
J
Joined: Apr 2014
Posts: 4
type it where?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
As a text message to any channel or status window.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Apr 2014
Posts: 4
J
Self-satisified door
Offline
Self-satisified door
J
Joined: Apr 2014
Posts: 4
thanks for that information Nillen


Link Copied to Clipboard