From c8873d506870943b224b06e6eaff8397f9138f1e Mon Sep 17 00:00:00 2001 From: raatty Date: Fri, 15 Jun 2018 18:35:36 +1200 Subject: [PATCH] whowns command --- src/cogs/bot_management.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cogs/bot_management.py b/src/cogs/bot_management.py index 4801954..d19cf3b 100644 --- a/src/cogs/bot_management.py +++ b/src/cogs/bot_management.py @@ -106,6 +106,15 @@ class BotManager: colour=self.bot.embed_color) await ctx.send(embed=em) + @commands.command() + async def whowns(self, ctx, bot: discord.Member): + if not bot.bot: + await ctx.send('this commands only for bots') + else: + owner = await self.bot.db_con.fetchrow('select * from bots where id = $1', bot.id) + await ctx.send(owner['owner']) + + def setup(bot): bot.add_cog(BotManager(bot)) \ No newline at end of file