feat(bot): ✨ Set the status to DND on restart.

This commit is contained in:
Nyeki.py
2024-10-24 01:50:45 -03:00
parent afad9250b6
commit f5ff348468
+6 -1
View File
@@ -297,7 +297,12 @@ class Mods(base.Cog):
pass pass
await ctx.send( 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) await self.bot.redis.delete(constants.CHANNELS_ONCALL_SET)