dmegahan / TwitchStats

Python bot for scraping mutliple Twitch.tv streams and IRCs for stream statistics
Apache License 2.0
1 stars 0 forks source link

Splitting a raw IRC message into user/message could be better #35

Open dmegahan opened 9 years ago

dmegahan commented 9 years ago

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.