emoji support
Browse files- akn/utils/prefixprem.py +1 -1
akn/utils/prefixprem.py
CHANGED
@@ -36,7 +36,7 @@ def command(commands: Union[str, List[str]], case_sensitive: bool = False):
|
|
36 |
return await process_command(flt, client, message, without_prefix, command_re, username)
|
37 |
|
38 |
if text.startswith(stored_prefix):
|
39 |
-
without_prefix = text[len(stored_prefix):].strip()
|
40 |
return await process_command(flt, client, message, without_prefix, command_re, username)
|
41 |
|
42 |
return False
|
|
|
36 |
return await process_command(flt, client, message, without_prefix, command_re, username)
|
37 |
|
38 |
if text.startswith(stored_prefix):
|
39 |
+
without_prefix = text[len(stored_prefix.encode("utf-16-le")) // 2:].strip()
|
40 |
return await process_command(flt, client, message, without_prefix, command_re, username)
|
41 |
|
42 |
return False
|