Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions bot/exts/moderation/modpings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

from async_rediscache import RedisCache
from dateutil.parser import isoparse
from discord import Member
from discord import Embed, Member
from discord.ext.commands import Cog, Context, group, has_any_role

from bot.bot import Bot
from bot.constants import Emojis, Guild, MODERATION_ROLES, Roles
from bot.constants import Colours, Emojis, Guild, Icons, MODERATION_ROLES, Roles
from bot.converters import Expiry
from bot.utils.scheduling import Scheduler

Expand Down Expand Up @@ -104,7 +104,9 @@ async def off_command(self, ctx: Context, duration: Expiry) -> None:
self._role_scheduler.cancel(mod.id)
self._role_scheduler.schedule_at(duration, mod.id, self.reapply_role(mod))

await ctx.send(f"{Emojis.check_mark} Moderators role has been removed until {until_date}.")
embed = Embed(timestamp=duration, colour=Colours.bright_green)
embed.set_footer(text="Moderators role has been removed until", icon_url=Icons.green_checkmark)
await ctx.send(embed=embed)

@modpings_group.command(name='on')
@has_any_role(*MODERATION_ROLES)
Expand Down