From 6f4331882c143db3e6dc83f585a34b30dfe215c5 Mon Sep 17 00:00:00 2001 From: Boris Muratov <8bee278@gmail.com> Date: Thu, 14 Aug 2025 18:35:47 +0300 Subject: Add sync command --- bot/exts/moderation/modpings.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bot/exts/moderation/modpings.py b/bot/exts/moderation/modpings.py index 8a2793364..5889a94de 100644 --- a/bot/exts/moderation/modpings.py +++ b/bot/exts/moderation/modpings.py @@ -259,6 +259,16 @@ class ModPings(Cog): await self.handle_moderator_state(ctx.author) await ctx.reply(f"{Emojis.ok_hand} Deleted your modpings schedule.") + @modpings_group.command(name="sync") + async def sync_command(self, ctx: Context) -> None: + """ + Attempt to re-sync your pingable moderators role with the stored state. + + If there is a reoccurring problem, please report it. + """ + await self.handle_moderator_state(ctx.author) + await ctx.reply(f"{Emojis.ok_hand} State re-synced.") + async def cog_unload(self) -> None: """Cancel role tasks when the cog unloads.""" log.trace("Cog unload: cancelling all scheduled tasks.") -- cgit v1.2.3