Cleaned up Main
This commit is contained in:
parent
b0169ec68d
commit
5f3b3bb775
4
main.py
4
main.py
@ -41,12 +41,11 @@ def discord_module_init(dbCert, discordCert):
|
||||
|
||||
def thread_main():
|
||||
global twitch_chat
|
||||
global credentials_manager
|
||||
global discord_connection
|
||||
global credentials_manager
|
||||
|
||||
twitch_chat = twitch_script.Twitch_Module()
|
||||
discord_connection = discord_script.Discord_Module()
|
||||
|
||||
credentials_manager = credentials.Credentials_Module()
|
||||
|
||||
credentials_manager.load_credentials()
|
||||
@ -60,7 +59,6 @@ def thread_main():
|
||||
threads.append(twitch)
|
||||
twitch.start()
|
||||
|
||||
discord_connection = discord_script.Discord_Module()
|
||||
discord = threading.Thread(target=discord_module_init, args=(dbCert, discordCert))
|
||||
threads.append(discord)
|
||||
discord.start()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user