General improvements and refactoring

This commit is contained in:
kku
2024-12-15 23:21:41 +01:00
parent 19d2ef281c
commit 982d0bce43
5 changed files with 246 additions and 192 deletions

View File

@@ -15,8 +15,8 @@ class Logger(commands.Cog):
async def on_message(self, message: Message):
if (
(message.author != self.client.user)
and (message.author.bot == False)
and (message.author.system == False)
and (message.author.bot is False)
and (message.author.system is False)
):
if col_users.find_one({"user": message.author.id}) is None:
user = {}
@@ -42,8 +42,8 @@ class Logger(commands.Cog):
if (
(member != self.client.user)
and (member.bot == False)
and (member.system == False)
and (member.bot is False)
and (member.system is False)
):
await welcome_chan.send(
content=(await config_get("welcome", "messages")).format(