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
26 lines
549 B
Python
26 lines
549 B
Python
# I moved all the requirements into requirements.txt.
|
|
# you can install everything with pip install -r requirements.txt while you're in the directory
|
|
|
|
import sys
|
|
import time
|
|
|
|
import twitch_script_class
|
|
|
|
import utilities_script as utility
|
|
|
|
twitch_chat: twitch_script_class.Twitch_Module
|
|
|
|
|
|
def main():
|
|
print("Connecting to Channels...")
|
|
|
|
global twitch_chat
|
|
twitch_chat = twitch_script_class.Twitch_Module()
|
|
|
|
twitch_chat.join_channel("thecuriousnerd")
|
|
# twitch_chat.send_message("activated")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|