36 lines
1.0 KiB
Python
36 lines
1.0 KiB
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
|
|
|
|
import utilities_script as utility
|
|
|
|
import credentials
|
|
|
|
twitch_chat: twitch_script.Twitch_Module
|
|
credentials_manager: credentials.Credentials_Module
|
|
|
|
def main():
|
|
global twitch_chat
|
|
global credentials_manager
|
|
credentials_manager = credentials.Credentials_Module()
|
|
credentials_manager.load_credentials()
|
|
|
|
dbCert: credentials.DB_Credential = credentials_manager.find_Credential(credentials.DB_Credential, "praxis_bot")
|
|
twitchCert: credentials.Twitch_Credential = credentials_manager.find_Twitch_Credential("praxis_bot")
|
|
|
|
twitch_chat = twitch_script.Twitch_Module()
|
|
|
|
twitch_chat.db_manager.setup_engine(dbCert)
|
|
twitch_chat.twitchCredential = twitchCert
|
|
|
|
twitch_chat.join_channel(None, "thecuriousnerd")
|
|
|
|
# twitch_chat.send_message("activated")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|