From f5ff3484688b7225e9a9b161831d309e8b678cab Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Thu, 24 Oct 2024 01:50:45 -0300 Subject: [PATCH] feat(bot): :sparkles: Set the status to DND on restart. --- payphone/cogs/mods/cog.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/payphone/cogs/mods/cog.py b/payphone/cogs/mods/cog.py index f8d950c..2c07d56 100644 --- a/payphone/cogs/mods/cog.py +++ b/payphone/cogs/mods/cog.py @@ -297,7 +297,12 @@ class Mods(base.Cog): pass await ctx.send( - "⚡ Notified all channels of calls hang up. Flushing messages to the DB..." + "⚡ Notified all channels of calls hang up. Updating Payphone's status..." + ) + + await self.bot.change_presence( + activity=discord.CustomActivity(name="Payphone is restarting."), + status=discord.Status.do_not_disturb ) await self.bot.redis.delete(constants.CHANNELS_ONCALL_SET)