def charinfo(self, *, characters: str):
"""Shows you information about a number of characters.
Only up to 15 characters at a time.
"""
if len(characters) > 15:
await self.bot.say('Too many characters ({}/15)'.format(len(characters)))
return
def to_string(c):
digit = format(ord(c), 'x')
name = unicodedata.name(c, 'Name not found.')
return '`0x{0}`: {1} - {2} \N{EM DASH} <http://www.fileformat.info/info/unicode/char/{0}>'.format(digit, name, c)
await self.bot.say('\n'.join(map(to_string, characters)))
评论列表
文章目录