My program is meant to take a message sent from the server and scan it for keywords. I came up with a system like this:
buffer = so.recv(256)
if not buffer:
break
message = buffer.decode('utf-8')
if "keyword" in message:
pass
I have no idea why this isn't working. Can anyone help?
Aucun commentaire:
Enregistrer un commentaire