So i am trying to add dev only commands me and my devs get confused on doing this as we need the is_owner but i do not know how to implement it any help here?
So currently i have a shutdown bot command for devs when it is needed:
@commands.command(pass_context=True)
@checks.isOwner()
async def shutdown(self, ctx):
"""Shuts the bot down"""
fmt = 'Shutting down, I will miss you {0.author.name}'
await self.bot.say(fmt.format(ctx.message))
await self.bot.logout()
await self.bot.close()
See Question&Answers more detail:os