Added Cooldowns to limit messages and commands. #8

Merged
alex_orid merged 5 commits from cooldowns into master 2020-10-15 10:09:05 +00:00
2 changed files with 13 additions and 4 deletions
Showing only changes of commit 202d8e5891 - Show all commits

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")