basicbot.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:TnyBot-Discord 作者: 00firestar00 项目源码 文件源码
def on_command_error(self, exception, ctx):
        if isinstance(exception, CheckFailure):
            print("{0} does not have permission to run `{1}`".format(ctx.message.author, ctx.command.name))
        elif isinstance(exception, CommandNotFound):
            # This is handled in CustomCommands
            pass
        else:
            pprint(exception)
            await self.on_error("on_command_error", exception, ctx)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号