From 0046ac83948a8c292bae9519f1e6d552bf9af2d4 Mon Sep 17 00:00:00 2001 From: Specoolazius Date: Thu, 31 Mar 2022 15:28:00 +0200 Subject: [PATCH] implemented new debug settings --- bot/botclient.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot/botclient.py b/bot/botclient.py index af03120..688286d 100644 --- a/bot/botclient.py +++ b/bot/botclient.py @@ -54,6 +54,13 @@ class Configs(object): self.log_path = config.get('logging', 'path', fallback=os.path.join('logs', '')) self.log_level = config.getint('logging', 'level', fallback=logging.INFO) + self.retry_in_seconds = config.getint('presence', 'retry_in_seconds', fallback=15) + self.server_start_timout = config.getint('presence', 'server_start_timout', fallback=300) + + self.debug_guilds = config.get('debug', 'debug_guilds', fallback=None) + if self.debug_guilds: + self.debug_guilds = [int(guild_id) for guild_id in self.debug_guilds.split(' ')] + self.intents = discord.Intents.none() self.mc_flags = discord.MemberCacheFlags.from_intents(self.intents)