aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2025-08-14 18:35:47 +0300
committerGravatar Boris Muratov <[email protected]>2025-08-14 18:35:47 +0300
commit6f4331882c143db3e6dc83f585a34b30dfe215c5 (patch)
tree9f85ee9146e444a031a1f283126bc947c7162d99
parentFix modpings schedule command (diff)
Add sync command
-rw-r--r--bot/exts/moderation/modpings.py10
1 files changed, 10 insertions, 0 deletions
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.")