This commit is contained in:
rzmk 2021-05-18 18:48:42 -04:00
parent f9a2e68c8b
commit 95d0201681
1552 changed files with 367539 additions and 2 deletions

18
cogs/moderationCog.py Normal file
View file

@ -0,0 +1,18 @@
import discord
from discord.ext import commands
class ModerationCog(commands.Cog):
def __init__(self, client):
self.client = client
# Commands
@commands.command()
@commands.has_permissions(kick_members = True)
async def kick(self, ctx, member : discord.Member, *, reason="No reason provided."):
await ctx.send(member.mention + " has been kicked.")
await member.send("You have been kicked from the server because: " + reason)
await member.kick(reason=reason)
def setup(client):
client.add_cog(ModerationCog(client))