whowns command

This commit is contained in:
raatty 2018-06-15 18:35:36 +12:00
parent 1317b7eaf3
commit c8873d5068

View File

@ -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))