Removed bots.py and slurs.py and moved them into config.py. twitch_script_class.py has been updated to handle this added a test harness for twitch_script_class.py contains_url and contains_slur are both validated refactored contains_url to use a simple(ish) regex instead of an if cascade Let PEP8 do it's thing and reformat all the files. Removed bots.py and slurs.py and moved them into config.py. twitch_script_class.py has been updated to handle this added a test harness for twitch_script_class.py contains_url and contains_slur are both validated refactored contains_url to use a simple(ish) regex instead of an if cascade
12 lines
409 B
Python
12 lines
409 B
Python
# So I'm a little conflicted here. My nit-picky self says that this should be a class you have to instantiate rather
|
|
# than static variables... I'll leave this alone for now, but you may wish to refactor this in future
|
|
|
|
username = ""
|
|
helix = ""
|
|
oauth = "oauth:"
|
|
v5_Client = ""
|
|
|
|
# Helix ID https://dev.twitch.tv/console/apps
|
|
# Oauth https://twitchapps.com/tmi/
|
|
# V5 Client ID https://twitchtokengenerator.com/
|