Currently the code looks like:
user = line.partition("!")[0][1:]
print message
message = line.split(":")[2]
This code is not descriptive, hard to understand, and generally bad at doing its job. Found on line 135 of TwitchIRCBot. Needs a makeover and better way of actually retrieving the data without room for error.
Currently the code looks like: user = line.partition("!")[0][1:]
print message
message = line.split(":")[2]
This code is not descriptive, hard to understand, and generally bad at doing its job. Found on line 135 of TwitchIRCBot. Needs a makeover and better way of actually retrieving the data without room for error.