forked from nh-server/Kurisu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add email notice to ban messages (nh-server#1295)
get squashed idiot
- Loading branch information
1 parent
7a8253d
commit 1502369
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,6 +117,7 @@ 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) | ||
|
@@ -224,6 +225,8 @@ 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 an email to [email protected]" | ||
msg += "Please note: age-based timebans are not appealable, as minimum age is a Discord ToS/legal requirement." | ||
await send_dm_message(member, msg, ctx) | ||
try: | ||
await ctx.guild.ban(member, reason=reason, delete_message_days=0) | ||
|
@@ -283,7 +286,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/when you have secured your account, contact frozenchen on discord or send an email to [email protected]") | ||
await send_dm_message(member, ban_msg) | ||
reason = "Linking scamming site" | ||
await member.ban(reason=reason, delete_message_days=1) | ||
|