fix: fixed coco list not working

This commit is contained in:
Seaswimmer 2023-08-08 12:20:07 -04:00
parent f9e5cc143c
commit 7a01f7608d
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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):