Ability to create emote/emoji macros from strings directly, on-board.

This commit is contained in:
Josh Klar
2018-10-08 03:50:55 -07:00
parent 64888f1df8
commit eca4bf087e
6 changed files with 67 additions and 30 deletions

View File

@@ -1,3 +1,10 @@
def get_wide_ordinal(char):
if len(char) != 2:
return ord(char)
return 0x10000 + (ord(char[0]) - 0xD800) * 0x400 + (ord(char[1]) - 0xDC00)
def flatten_dict(d):
items = {}