Bot can send chat messages but not receive them

Hi. I have a bot connecting to the WebSockets URL. It successfully gets capabilities, logs in, and joins my chat room. It successfully receives the GLOBALUSERSTATE, NAMES, HOSTTARGET, USERSTATE, ROOMSTATE etc. commands. It can even send PRIVMSG commands, which I can see in my browser. However, messages I send in my browser do not appear to my bot as PRIVMSG commands. Here is what the input/output looks like:

< CAP REQ :twitch.tv/membership
< CAP REQ :twitch.tv/tags
< CAP REQ :twitch.tv/commands
> :tmi.twitch.tv CAP * ACK :twitch.tv/membership
> :tmi.twitch.tv CAP * ACK :twitch.tv/tags
> :tmi.twitch.tv CAP * ACK :twitch.tv/commands
< PASS oauth:REDACTED
< NICK mathbot231
> :tmi.twitch.tv 001 mathbot231 :Welcome, GLHF!
> :tmi.twitch.tv 002 mathbot231 :Your host is tmi.twitch.tv
> :tmi.twitch.tv 003 mathbot231 :This server is rather new
> :tmi.twitch.tv 004 mathbot231 :-
> :tmi.twitch.tv 375 mathbot231 :-
> :tmi.twitch.tv 372 mathbot231 :You are in a maze of twisty passages, all alike.
> :tmi.twitch.tv 376 mathbot231 :>
> @badge-info=;badges=;color=#00FF7F;display-name=mathbot231;emote-sets=0;user-id=123087542;user-type= :tmi.twitch.tv GLOBALUSERSTATE
< JOIN mathfreak231
> :mathbot231!mathbot231@mathbot231.tmi.twitch.tv JOIN mathfreak231
> :mathbot231.tmi.twitch.tv 353 mathbot231 = mathfreak231 :mathbot231
> :mathbot231.tmi.twitch.tv 366 mathbot231 mathfreak231 :End of /NAMES list
> :tmi.twitch.tv HOSTTARGET #mathfreak231 :sunshinemocha -
> @msg-id=host_on :tmi.twitch.tv NOTICE #mathfreak231 :Now hosting SunshineMocha.
> @badge-info=;badges=moderator/1;color=#00FF7F;display-name=mathbot231;emote-sets=0;mod=1;subscriber=0;user-type=mod :tmi.twitch.tv USERSTATE #mathfreak231
> @emote-only=0;followers-only=-1;r9k=0;rituals=0;room-id=60349359;slow=0;subs-only=0 :tmi.twitch.tv ROOMSTATE #mathfreak231
> PING :tmi.twitch.tv
< PONG :tmi.twitch.tv
< PRIVMSG #mathfreak231 :Can I send messages?
> @badge-info=;badges=moderator/1;color=#00FF7F;display-name=mathbot231;emote-sets=0;mod=1;subscriber=0;user-type=mod :tmi.twitch.tv USERSTATE #mathfreak231
> PING :tmi.twitch.tv
< PONG :tmi.twitch.tv
< PRIVMSG #mathfreak231 :Can I send messages?
> @badge-info=;badges=moderator/1;color=#00FF7F;display-name=mathbot231;emote-sets=0;mod=1;subscriber=0;user-type=mod :tmi.twitch.tv USERSTATE #mathfreak231

The bot itself is run in Python using asyncio and the websockets library. It logs every message it sends and receives. Is there a part of the protocol Iā€™m missing?

After debugging on Discord the issue is

No # in the channel name with the join command

1 Like

thank you!

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