diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24e417a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +env \ No newline at end of file diff --git a/README.md b/README.md index 7acc8df..d5ea99b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # Duckster A fun and all-purpose bot made in Python. -Founded by @iakrules and @rzmk \ No newline at end of file +Founded by [@iakrules](https://github.com/iakrules) and [@rzmk](https://github.com/rzmk). \ No newline at end of file diff --git a/cogs/moderationCog.py b/cogs/moderationCog.py new file mode 100644 index 0000000..2027ca7 --- /dev/null +++ b/cogs/moderationCog.py @@ -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)) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e80511c..3700a09 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,9 @@ -discord.py==1.7.2 \ No newline at end of file +aiohttp==3.7.4 +async-timeout==3.0.1 +attrs==21.2.0 +chardet==4.0.0 +discord.py==1.7.2 +idna==3.1 +multidict==5.1.0 +typing-extensions==3.10.0.0 +yarl==1.6.3 \ No newline at end of file