From 01894831b2e42e5af7454242d90b33e4d5e530f7 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Fri, 8 Sep 2023 16:46:22 -0400 Subject: [PATCH] clean up bot.py --- bot.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 2e1bb82..cf3684b 100644 --- a/bot.py +++ b/bot.py @@ -21,6 +21,13 @@ logger.addHandler(handler) @hydra.main(config_path="conf", config_name="config") def main(cfg: BotConfig): + """ + Main function for the bot. Sets config, intents, then connects the bot to discord. + + Args: + cfg (BotConfig): The local configs to use. + """ + # Allows privledged intents for monitoring members joining, roles editing, and role assignments # These need to be enabled in the developer portal as well intents = nextcord.Intents.default() @@ -32,7 +39,7 @@ def main(cfg: BotConfig): # intents.guilds = True # To enable the members priveleged intent: - intents.members = True + # intents.members = True bot = commands.Bot(intents=intents) bot.config = cfg