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
评论列表
文章目录