コード例 #1
0
ファイル: commandHandlers.py プロジェクト: beandon/Skypebot
def arbitraryCommandHandler(msg):
    """Handle the arbitrary execution of commands, most new commands wil be executed through
    this handler. Passes the command into the command class - begins execution and does stuff"""

    c = Command(msg.Body[8:])

    if c.isValid():
        msg.Chat.SendMessage(c.execute())
	return True
    else:
	return False