Skip to content Skip to sidebar Skip to footer

TypeError: Can't Concat Bytes To Str, Trying To Use Python3

So the following site explains how to make an irc bot, using socket, but it only works for python2, so I tried to make it compatible, but I get the error mentioned in the title. He

Solution 1:

botnick is not a bytes value but a string:

botnick = "Mybot"

Make that a bytes literal by adding a b in front:

botnick = b"Mybot"

Post a Comment for "TypeError: Can't Concat Bytes To Str, Trying To Use Python3"