Need help with an IRC bot. reddit / irc ---------------------------------------------------------------------- SgtRawrface · 2019-08-26 19:49 I was following a tutorial for an IRC bot in Python from this website: https://gist.github.com/RobertSzkutak/1326452 and in the end while the bot connects, it's not joining the channel it should, or sending the message that's coded in when it starts up. I've read that it's got to do with the PING/PONG requests after sending the user information but I can't find any information on modifying the code to make it handle the PING/PONG requests in between sending the bots nickname or password. Any help would be much appreciated. In the end I'm just trying to find a way to take any requests or text information and pass it to an IRC channel through a bot. Half as a coding exercise, half cuz I read an article of a guy whose done it and I think it's kinda cool. *Edit for words ---------------------------------------------------------------------- jhoneycutt · 2019-08-26 23:46 The problem is that it's sending JOIN and PRIVMSG commands before it finishes registering. Try [this version](https://pastebin.com/43E3Wsjs) which is a little less shit. Note that it waits until receiving IRC numeric "001" to send the JOIN and PRIVMSG commands. IRC numeric "001" is sent as a welcome message when a client finishes joining. You can read more about the IRC protocol in RFCs 1459 and 2812. ---------------------------------------------------------------------- SgtRawrface · 2019-08-27 03:13 Thank you, got it up and running first try. Looks like on top of the RFCs I also need to read more up on parsing lol