Anyone offer help connecting twitch bot to mirc? reddit / irc ---------------------------------------------------------------------- BlackPaintist · 2016-09-16 00:37 Able to connect to twitch server, except bot it getting kicked as I log in NETWORK=twitch.tv are supported by this server [20:30] * Your nick is now any help appreciated! ---------------------------------------------------------------------- Anonman9 · 2016-09-16 02:34 It's IRC not mIRC as a sidenote, twitch.tv violates the rfc, missing PREFIX, CHANLIMIT, NICKLEN, IRCD, etc. ---------------------------------------------------------------------- [deleted] · 2016-09-16 02:53 [deleted] ---------------------------------------------------------------------- Rogueain · 2016-09-20 09:13 You need to [register your bot as a developer application,](https://www.twitch.tv/kraken/oauth2/clients/new) and then you need to include a code script that authenticates your Client ID. [Cient ID Page](https://i.gyazo.com/bfafb2d86092423d25bc3fc420f6bee1.png) alias mTwitch.has.DisplayName { return 0000.0000.0008 } on *:CONNECT:{ if ($mTwitch.isServer) { JSONOpen -uw mTwitch_NameFix https://api.twitch.tv/kraken/users/ $+ $mTwitch.UrlEncode($me) JSONUrlHeader mTwitch_NameFix Client-ID !!!YOUR TWITCH CLIENT ID GOES HERE!!! JSONUrlGet mTwitch_NameFix if (!$JSONError) { var %dnick = $remove($JSON(mTwitch_NameFix, display_name), $chr(32), $cr, $lf) if ($len(%dnick) && %dnick !=== $me) { .parseline -iqt $+(:, $me, !, $me, @, $me, .tmi.twitch.tv) NICK $+(:, %dnick) } } JSONClose mTwitch_NameFix } } on $*:PARSELINE:in:/^(@\S+) \x3A([^!@\s]+)(![^@\s]+@\S+ PRIVMSG \x23?\S+ \x3A.*)$/:{ var %tags = $regml(1), %nick = $regml(2), %param = $regml(3), %dnick if ($mTwitch.isServer) { %dnick = $remove($mTwitch.xtags(%tags, display-name), $chr(32), $cr, $lf) if ($len(%dnick) && %dnick !=== %nick) { %tags = %tags $+ $chr(59) $+ user-name= $+ $nick .parseline -it %tags $+(:, %dnick, %param) } } } [Working](https://i.gyazo.com/5cdc73a0b7caaa372354c37183cecdff.png) ---------------------------------------------------------------------- Rogueain · 2016-09-20 09:16 Keep in mind, that I didn't write that code. It's based on [Blasman's bot scripts.](https://github.com/Blasman/mIRC-Twitch-Scripts) If you have any problems, then I can't help you. ---------------------------------------------------------------------- BlackPaintist · 2016-09-21 00:55 Hey Rogueain, I really appreciate this help, thank you. Where do I put this code? I've gotten to the client id part. edit: never mind I found it. You are a beautiful bastard! Thank you so much for this. ---------------------------------------------------------------------- Rogueain · 2016-09-21 05:26 You're welcome. Glad I could help someone out! ---------------------------------------------------------------------- SReject · 2016-10-18 07:23 This is actually one of my [mTwitch](https://github.com/SReject/mTwitch) scripts and has been updated to fix the problem