Updated Mains.

This commit is contained in:
Alex Orid 2020-10-15 06:00:49 -04:00
parent d88871abef
commit 202d8e5891
2 changed files with 13 additions and 4 deletions

8
db.py
View File

@ -69,5 +69,9 @@ class db_module():
if __name__ == "__main__":
db_connection = db_module()
db_connection.setup_engine()
testModule = db_module()
credentials_manager = credentials.Credentials_Module()
credentials_manager.load_credentials()
testModule.dbCredential = credentials_manager.find_DB_Credential("praxis_bot")
testModule.setup_engine()

View File

@ -163,5 +163,10 @@ def main_chat_commands_check(channel, sender, text):
if __name__ == "__main__":
testChat = Twitch_Module()
testChat.join_channel("thecuriousnerd")
testModule = Twitch_Module()
credentials_manager = credentials.Credentials_Module()
credentials_manager.load_credentials()
testModule.twitchCredential = credentials_manager.find_Twitch_Credential("praxis_bot")
testModule.dbCredential = credentials_manager.find_DB_Credential("praxis_bot")
testModule.join_channel(None ,"thecuriousnerd")