From 6842f9029bebaa067e574f47f5b9d66e514fed1b Mon Sep 17 00:00:00 2001 From: Feyko Date: Sun, 13 Oct 2024 14:00:26 +0200 Subject: [PATCH 1/2] Update levelling.py --- fred/cogs/levelling.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/fred/cogs/levelling.py b/fred/cogs/levelling.py index 0fa3907..8496ee8 100644 --- a/fred/cogs/levelling.py +++ b/fred/cogs/levelling.py @@ -108,17 +108,17 @@ async def validate_level(self): logpayload["current_level"] = self.rank if expected_level != self.rank: logger.info("Correcting a mismatched level", extra=logpayload) - if self.DB_user.accepts_dms: - if expected_level > self.rank: - await Levelling.bot.send_DM( - self.member, - f"You went up from level {self.rank} to level {expected_level}! " f"Congratulations!", - ) - else: - await Levelling.bot.send_DM( - self.member, - f"You went down from level {self.rank} to level {expected_level}... " f"Sorry about that", - ) + # if self.DB_user.accepts_dms: + # if expected_level > self.rank: + # await Levelling.bot.send_DM( + # self.member, + # f"You went up from level {self.rank} to level {expected_level}! " f"Congratulations!", + # ) + # else: + # await Levelling.bot.send_DM( + # self.member, + # f"You went down from level {self.rank} to level {expected_level}... " f"Sorry about that", + # ) self.rank = expected_level await self.validate_role() @@ -189,7 +189,7 @@ async def on_message(self, message: Message): if datetime.now() >= self.xp_timers[profile.user_id]: await profile.increment_xp() else: - self.logger.info( + self.logger.debug( "Levelling: Someone sent a message too fast and will not be awarded xp", extra=common.message_info(message), ) From ef5d7b85a8948d7c5896c183a24954626167ac88 Mon Sep 17 00:00:00 2001 From: Feyko Date: Sun, 13 Oct 2024 14:01:36 +0200 Subject: [PATCH 2/2] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index da818b1..c90b7d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fred" -version = "2.22.11" +version = "2.22.12" description = "A Discord bot for the Satisfactory Modding Discord " authors = ["Feyko ", "Mircea Roata ", "Borketh "] license = "MIT License"