-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a8253d
commit a84c9c3
Showing
1 changed file
with
4 additions
and
2 deletions.
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,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) | ||
|
@@ -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) | ||
|
@@ -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) | ||
|