mIRC Homepage
Posted By: Slashir11 Submit message to mIRC instead of channel - 05/09/15 12:36 PM
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.)
Posted By: Nillen Re: Submit message to mIRC instead of channel - 05/09/15 01:06 PM
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...
}
Cheers, worked just like I needed.
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.
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.
© mIRC Discussion Forums