From a59d16738d4b4a66c1a5a3950edf6be5e2590c10 Mon Sep 17 00:00:00 2001 From: nex <53234499+EEKIM10@users.noreply.github.com> Date: Thu, 20 Oct 2022 15:55:31 +0100 Subject: [PATCH] =?UTF-8?q?Add=20a=20=E2=9C=A8dynamic=E2=9C=A8=20lupupa=20?= =?UTF-8?q?warning=20x2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cogs/events.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/events.py b/cogs/events.py index da3824f..7000e61 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -29,8 +29,10 @@ class Events(commands.Cog): if lupupa_warning and now.strftime("%A") == "Thursday": if now.time() > time(15, 15): text = lupupa_recovery_text + status = discord.Status.idle else: text = lupupa_warning_text + status = discord.status.dnd if self.bot.activity: if self.bot.activity.name == text: return @@ -39,7 +41,7 @@ class Events(commands.Cog): name=text, type=discord.ActivityType.playing ), - status=discord.Status.dnd + status=status ) else: await self.bot.change_presence()