0
votes

So in my python IRC bot I get raw messages from IRC that look like this

:[email protected] PRIVMSG #channel :Kappa

I only want my bot to display the username, channel and the message. How can I filter the data so that I only see this?

1

1 Answers

0
votes

To get the message, do this:

msg = "Your-message"
msg.split(":", 2)[2]

Through, I don't know how to get the user.