Fixed error when message contains only image.

This commit is contained in:
Sheldon Lee 2020-09-18 16:58:59 +00:00
parent cfd15e7dda
commit 476215312b

View File

@ -21,7 +21,7 @@ class Command:
@staticmethod
def getCommand(string):
words = Command.__getWords(string);
if words[0].startswith(Command.command_prefix):
if words[0].startswith(Command.command_prefix) and len(words) >= 0:
return words[0][1:]
return ""