mIRC Home    About    Download    Register    News    Help

Print Thread
Submit message to mIRC instead of channel #254831 05/09/15 12:36 PM
Joined: May 2015
Posts: 9
S
Slashir11 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: May 2015
Posts: 9
Alright, so I recently asked about no one showing up in the user list in mIRC for a Twitch bot and got that I needed to type
Quote:
/raw CAP REQ :twitch.tv/membership
in order to populate the user list. My question now is how to go about creating a script that causes mIRC to do this on joining a channel. I've got a simple script here:
Code:
on me:*:join:#examplechannel: .timerme 1 2 msg $chan /raw CAP REQ :twitch.tv/membership

This however causes the bot to type the /raw command into the Twitch chat instead of the mIRC chat. What do I need to change in order to send the command to the mIRC chat instead of the channel (I'm assuming it's the 'msg $chan', I just don't know what to change it to.)

Re: Submit message to mIRC instead of channel [Re: Slashir11] #254832 05/09/15 01:06 PM
Joined: Dec 2013
Posts: 779
N
Nillen Offline
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Remove the msg $chan completely.
It's redundant to do this whenever you join a channel though. Doing it once when you connect is sufficient.

on 1:connect: {
RAW...
RAW...
}


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Re: Submit message to mIRC instead of channel [Re: Nillen] #254835 05/09/15 06:04 PM
Joined: May 2015
Posts: 9
S
Slashir11 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: May 2015
Posts: 9
Cheers, worked just like I needed.

Re: Submit message to mIRC instead of channel [Re: Slashir11] #254836 05/09/15 06:35 PM
Joined: May 2015
Posts: 9
S
Slashir11 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: May 2015
Posts: 9
Well, it actually half worked. I now have an updating Nick list, but JTV now no longer updates the channel modes, meaning it doesn't recognize mods and the like. So cheers for the updating list, not so much for the JTV modes not working.

Re: Submit message to mIRC instead of channel [Re: Slashir11] #254848 05/09/15 11:59 PM
Joined: Oct 2014
Posts: 35
M
MattiSony Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
I would recommend requesting twitch.tv/tags with the /membership CAP and using if (user-type=mod isin $msgtags) to see if they're modded.


Matti