From 9d7a13f47394aefc359f119269e5c8cae48fdbae Mon Sep 17 00:00:00 2001 From: profitroll Date: Sat, 6 May 2023 18:31:23 +0200 Subject: [PATCH] Fixed not working config --- cogs/logger.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/logger.py b/cogs/logger.py index 6a427cd..6c36bb7 100644 --- a/cogs/logger.py +++ b/cogs/logger.py @@ -30,7 +30,7 @@ class Logger(commands.Cog): @commands.Cog.listener() async def on_member_join(self, member: Member): - welcome_chan = ds_utils.get(self.client.get_guild(await config_get("guild")).channels, id=await config_get("logging", "channels", "text")) + welcome_chan = ds_utils.get(self.client.get_guild(await config_get("guild")).channels, id=await config_get("welcome", "channels", "text")) rules_chan = ds_utils.get(self.client.get_guild(await config_get("guild")).channels, id=await config_get("rules", "channels", "text")) if (member != self.client.user) and (member.bot == False) and (member.system == False): @@ -38,12 +38,12 @@ class Logger(commands.Cog): await welcome_chan.send(content=(await config_get("welcome", "messages")).format(mention=member.mention, rules=rules_chan.mention)) if col_users.find_one({"user": member.id}) is None: - col_users.insert_one(document=user) - user = {} defaults = await config_get("user", "defaults") user["user"] = member.id for key in defaults: - user[key] = defaults[key] \ No newline at end of file + user[key] = defaults[key] + + col_users.insert_one(document=user) \ No newline at end of file