Пример #1
0
 public void RecieveCommand(EventCommandRecieved e)
 {
     if (e.Message.StartsWith("migraine "))
     {
         string[] args = e.Message.Split(' ');
         handleCommand(args);
     }
 }
Пример #2
0
        public void OnCommandRecieve(EventCommandRecieved cmd)
        {
            switch (cmd.Message.Trim())
            {
            case "restart-vulcan":
                RestartVulcan();
                break;

            case "uninstall-vulcan":
                UninstallVulcan();
                break;
            }
        }