mIRC Home    About    Download    Register    News    Help

Topic Options
#254831 - 05/09/15 01:36 PM Submit message to mIRC instead of channel
Slashir11 Offline
Nutrimatic drinks dispenser

Registered: 01/05/15
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.)

Top
#254832 - 05/09/15 02:06 PM Re: Submit message to mIRC instead of channel [Re: Slashir11]
Nillen Offline
Hoopy frood

Registered: 24/12/13
Posts: 779
Loc: Sweden
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

Top
#254835 - 05/09/15 07:04 PM Re: Submit message to mIRC instead of channel [Re: Nillen]
Slashir11 Offline
Nutrimatic drinks dispenser

Registered: 01/05/15
Posts: 9
Cheers, worked just like I needed.

Top
#254836 - 05/09/15 07:35 PM Re: Submit message to mIRC instead of channel [Re: Slashir11]
Slashir11 Offline
Nutrimatic drinks dispenser

Registered: 01/05/15
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.

Top
#254848 - 06/09/15 12:59 AM Re: Submit message to mIRC instead of channel [Re: Slashir11]
MattiSony Offline
Ameglian cow

Registered: 26/10/14
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

Top