feat(bot): ✨ Set the status to DND on restart.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user