tools.py 文件源码

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

项目:Harmonbot 作者: Harmon758 项目源码 文件源码
def check_no_tag(self, ctx, tag):
        tags = self.tags_data[ctx.message.author.id]["tags"]
        if not tag in tags:
            close_matches = difflib.get_close_matches(tag, tags.keys())
            close_matches = "\nDid you mean:\n{}".format('\n'.join(close_matches)) if close_matches else ""
            await self.bot.embed_reply("You don't have that tag{}".format(close_matches))
        return not tag in tags
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号