Python twitch bot code example

I am trying to make https://github.com/TwitchDev/chat-samples/tree/master/python code example to work. I’ve created account for my bot, generated auth token, copied client id however class method on_welcome never gets called.
When I connect to IRC via sockets that’s the output:
:tmi.twitch.tv 001 codexchatbot :Welcome, GLHF!
:tmi.twitch.tv 002 codexchatbot :Your host is tmi.twitch.tv
:tmi.twitch.tv 003 codexchatbot :This server is rather new
:tmi.twitch.tv 004 codexchatbot :-
:tmi.twitch.tv 375 codexchatbot :-
:tmi.twitch.tv 372 codexchatbot :You are in a maze of twisty passages, all alike.
:tmi.twitch.tv 376 codexchatbot :>

:codexchatbot!codexchatbot@codexchatbot.tmi.twitch.tv JOIN

:codexchatbot.tmi.twitch.tv 353 codexchatbot = :bot
:codexchatbot.tmi.twitch.tv 366 codexchatbot :End of /NAMES list

And new messages never get printed.
Please help!

Seems you need a channelname. Just send “JOIN #channelname” instead of “JOIN”. Replace ‘channelname’ with your channel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.