diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-05-30 16:19:56 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-05-30 16:19:56 +0000 |
commit | 6606b4df2a7872e71d2bac8cdec4f28049814557 (patch) | |
tree | 3942e8f6a1b5d2501c102c2b39613abba59fb4b4 /cogs/admin.py | |
parent | 74767a86e68b98cfeced0e89e4eaf4943202d9b6 (diff) | |
download | steve-bot-6606b4df2a7872e71d2bac8cdec4f28049814557.tar steve-bot-6606b4df2a7872e71d2bac8cdec4f28049814557.tar.gz steve-bot-6606b4df2a7872e71d2bac8cdec4f28049814557.tar.bz2 steve-bot-6606b4df2a7872e71d2bac8cdec4f28049814557.tar.lz steve-bot-6606b4df2a7872e71d2bac8cdec4f28049814557.tar.xz steve-bot-6606b4df2a7872e71d2bac8cdec4f28049814557.tar.zst steve-bot-6606b4df2a7872e71d2bac8cdec4f28049814557.zip |
Better verify command
Diffstat (limited to 'cogs/admin.py')
-rw-r--r--[-rwxr-xr-x] | cogs/admin.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index d8de2ad..8f100c1 100755..100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -85,5 +85,17 @@ class Admin(commands.Cog): await ctx.send(f'Some unknown error happened while trying to reload extension {ext} (check logs)') self.bot.logger.exception(f'Failed to reload extension {ext}:') + @commands.command() + @commands.check(is_mod) + async def connect(self, ctx): + await ctx.author.voice.channel.connect() + await ctx.send(f"Joined channel {ctx.author.voice.channel.name}") + + @commands.command() + @commands.check(is_mod) + async def disconnect(self, ctx): + await ctx.voice_client.disconnect() + await ctx.send(f"Left channel {ctx.author.voice.channel.name}") + def setup(bot): bot.add_cog(Admin(bot)) |