Skip to content

Commit 6f43318

Browse files
committed
Add sync command
1 parent 35289c5 commit 6f43318

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

bot/exts/moderation/modpings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,16 @@ async def modpings_schedule_delete(self, ctx: Context) -> None:
259259
await self.handle_moderator_state(ctx.author)
260260
await ctx.reply(f"{Emojis.ok_hand} Deleted your modpings schedule.")
261261

262+
@modpings_group.command(name="sync")
263+
async def sync_command(self, ctx: Context) -> None:
264+
"""
265+
Attempt to re-sync your pingable moderators role with the stored state.
266+
267+
If there is a reoccurring problem, please report it.
268+
"""
269+
await self.handle_moderator_state(ctx.author)
270+
await ctx.reply(f"{Emojis.ok_hand} State re-synced.")
271+
262272
async def cog_unload(self) -> None:
263273
"""Cancel role tasks when the cog unloads."""
264274
log.trace("Cog unload: cancelling all scheduled tasks.")

0 commit comments

Comments
 (0)