@@ -66,6 +66,26 @@ async def kick_member(self, ctx: GuildContext, member: discord.Member, *, reason
6666 await ctx .send (f"{ member } is now gone. 👌" )
6767 await self .bot .logs .post_action_log (ctx .author , member , 'kick' , reason = reason )
6868
69+ @is_staff ("HalfOP" )
70+ @commands .bot_has_permissions (kick_members = True )
71+ @commands .command (name = "scamkick" )
72+ async def scamkick (self , ctx : GuildContext , member : discord .Member ):
73+ """Kicks a user, logs automatically, informs of reason for kick."""
74+ if await check_bot_or_staff (ctx , member , "kick" ):
75+ return
76+ reason = "Sending or linking scams or spam content, and/or compromised account."
77+ msg = f"You were kicked from { ctx .guild .name } ."
78+ msg += "\n \n You were kicked because your account has been compromised and has sent spam or scams in the server."
79+ msg += "\n \n You are able to rejoin the server, but please secure your account and consider adding two-factor authentication."
80+ await send_dm_message (member , msg , ctx )
81+ try :
82+ await member .kick (reason = reason )
83+ except discord .errors .Forbidden :
84+ await ctx .send ("💢 I don't have permission to do this." )
85+ return
86+ await ctx .send (f"{ member } is now gone. 👌" )
87+ await self .bot .logs .post_action_log (ctx .author , member , 'kick' , reason = reason )
88+
6989 @is_staff ("OP" )
7090 @commands .bot_has_permissions (ban_members = True )
7191 @commands .command (name = "ban" , aliases = ["yeet" ])
@@ -130,7 +150,7 @@ async def ban_member_slash(self,
130150 msg = f"You were banned from { interaction .guild .name } ."
131151 if reason :
132152 msg += " The given reason is: " + reason
133- msg += "If you think this is a mistake, contact frozenchen on discord or send a email to staff@nintendohomebrew.com"
153+ msg += "If you think this is a mistake, contact frozenchen on discord or send an email to staff@nintendohomebrew.com"
134154
135155 if duration is not None :
136156 timestamp = datetime .datetime .now (self .bot .tz )
0 commit comments