RPGBot.py 文件源码

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

项目:RPGBot 作者: henry232323 项目源码 文件源码
def on_command_error(self, ctx, exception):
        self.stats.increment("RPGBot.errors", tags=["RPGBot:errors"], host="scw-8112e8")
        logging.info(f"Exception in {ctx.command} {ctx.guild}:{ctx.channel} {exception}")
        if isinstance(exception, commands.MissingRequiredArgument):
            await ctx.send(f"`{exception}`")
        else:
            await ctx.send(f"`{exception}`")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号