fix: fixed coco list not working
This commit is contained in:
parent
f9e5cc143c
commit
7a01f7608d
1 changed files with 8 additions and 5 deletions
|
@ -105,11 +105,14 @@ class Galaxy(commands.Cog):
|
||||||
(0x1F680, 0x1F6FF), # Transport and map symbols
|
(0x1F680, 0x1F6FF), # Transport and map symbols
|
||||||
(0x1F700, 0x1F77F), # Alchemical symbols
|
(0x1F700, 0x1F77F), # Alchemical symbols
|
||||||
]
|
]
|
||||||
for char in emoji:
|
try:
|
||||||
code_point = ord(char)
|
for char in emoji:
|
||||||
for start, end in emoji_ranges:
|
code_point = ord(char)
|
||||||
if start <= code_point <= end:
|
for start, end in emoji_ranges:
|
||||||
return True
|
if start <= code_point <= end:
|
||||||
|
return True
|
||||||
|
except TypeError:
|
||||||
|
return False
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def extract_id(self, input_string):
|
def extract_id(self, input_string):
|
||||||
|
|
Loading…
Reference in a new issue