Esempio n. 1
0
 def message_is_shortcut(self, msg, shortcut):
     return msg.startswith(shortcut) and\
            not any(msg.startswith('/'+command) for command in command_processor.get_commands())
Esempio n. 2
0
 def message_is_command(self, msg):
     if msg.startswith('/'):
         words = msg.split(' ')
         if words[0][1:] in command_processor.get_commands():
             return True
     return False