IRC Bot cannot recieve chat messages

Hi all,
I’m working on implementing a chat moderation bot and have run into a bit of a snag. I can send messages just fine, however I cannot seem to receive any of the actual chat messages from the users on the channel. The other strange thing is my ping pong routine is working. Any suggestions? I’m using python 3.7

receiving loop
while True:
time.sleep(0.1)
ircmsg = i.irc.recv(1024).decode(“utf8”)
ircmsg = ircmsg.strip(’\r\n’)
print(ircmsg)
if ircmsg.find(“PING :”) != -1:
i.pong()

Terminal output
connection successful
:tmi.twitch.tv 001 synpaiowo :Welcome, GLHF!
:tmi.twitch.tv 002 synpaiowo :Your host is tmi.twitch.tv
:tmi.twitch.tv 003 synpaiowo :This server is rather new
:tmi.twitch.tv 004 synpaiowo :-
:tmi.twitch.tv 375 synpaiowo :-
:tmi.twitch.tv 372 synpaiowo :You are in a maze of twisty passages, all alike.
:tmi.twitch.tv 376 synpaiowo :>
:synpaiowo!synpaiowo@synpaiowo.tmi.twitch.tv JOIN synir
:synpaiowo.tmi.twitch.tv 353 synpaiowo = synir :synpaiowo
:synpaiowo.tmi.twitch.tv 366 synpaiowo synir :End of /NAMES list
Found chan
PING :tmi.twitch.tv

should be

:synpaiowo!synpaiowo@synpaiowo.tmi.twitch.tv JOIN #synir

You joined the wrong channel

1 Like

That did it. Thank you!

1 Like

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