randydev commited on
Commit
10f3ac0
·
verified ·
1 Parent(s): 484036b

emoji support

Browse files
Files changed (1) hide show
  1. 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