From f7d3203c2844d58671d44cb375de5898532f920d Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Mon, 18 Jan 2021 10:01:28 -0500 Subject: [PATCH] Fixed Startup --- config.py | 2 +- main.py | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config.py b/config.py index ec02abd..9b4b9ba 100644 --- a/config.py +++ b/config.py @@ -7,7 +7,7 @@ discord_module: bool = True autojoinTwitchChannels = ("thecuriousnerd") -selected_discordTTSChannels = (431129571308339210) +selected_discordTTSChannels = ("431129571308339210") class Speaker(Enum): diff --git a/main.py b/main.py index 31d6cbe..e9ac91a 100644 --- a/main.py +++ b/main.py @@ -26,17 +26,16 @@ def twitch_module_init(dbCert, twitchCert): twitch_chat.db_manager.setup_engine(dbCert) twitch_chat.twitchCredential = twitchCert - for twitchChannel in config.autojoinTwitchChannels: - twitch_chat.join_channel(None, twitchChannel) + for twitchChannel in config.autojoinTwitchChannels.split(): + twitch_chat.join_channel(None, "thecuriousnerd") def discord_module_init(dbCert, discordCert): discord_connection.dbCredential = dbCert discord_connection.discordCredential = discordCert - for ttsChannel in config.selected_discordTTSChannels: - discord_connection.selected_ttsChannels.append(ttsChannel) - + for ttsChannel in config.selected_discordTTSChannels.split(): + discord_connection.selected_ttsChannels.append(int(ttsChannel)) discord_connection.main() @@ -72,7 +71,7 @@ def thread_main(): t.join() print("---Point of no return---") - + input()