Ability to create emote/emoji macros from strings directly, on-board.
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user