Skip to content

Commit

Permalink
Add email notice to ban messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazedBelmont authored Apr 12, 2024
1 parent 7a8253d commit a84c9c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cogs/kickban.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ async def ban_member_slash(self,
msg = f"You were banned from {interaction.guild.name}."
if reason:
msg += " The given reason is: " + reason

msg += "If you think this is a mistake, contact frozenchen on discord or send a email to [email protected]"

if duration is not None:
timestamp = datetime.datetime.now(self.bot.tz)
delta = datetime.timedelta(seconds=duration)
Expand Down Expand Up @@ -224,6 +225,7 @@ async def timeban_member(self, ctx: GuildContext, member: discord.Member | disco
if reason:
msg += " The given reason is: " + reason
msg += f"\n\nThis ban lasts until {unban_time_string}."
msg += "If you think this is a mistake, contact frozenchen on discord or send a email to [email protected]"
await send_dm_message(member, msg, ctx)
try:
await ctx.guild.ban(member, reason=reason, delete_message_days=0)
Expand Down Expand Up @@ -283,7 +285,7 @@ async def scamban_member(self, ctx: GuildContext, member: discord.Member, site:
await self.filters.add_filtered_word(site, FilterKind.ScammingSite)
await self.bot.channels['mod-logs'].send(f"🆕 **Added**: {ctx.author.mention} added `{site}` to the word filter!")
ban_msg = ("You have been banned from Nintendo Homebrew for linking scamming sites in the server."
"If you think this is a mistake contact ❅FrozenFire❆#0700 on discord or send a email to [email protected]")
"If you think this is a mistake, contact frozenchen on discord or send a email to [email protected]")
await send_dm_message(member, ban_msg)
reason = "Linking scamming site"
await member.ban(reason=reason, delete_message_days=1)
Expand Down

0 comments on commit a84c9c3

Please sign in to comment.