コード例 #1
0
 public OnCommandEvent(Command command, string[] args, string complete)
 {
     Command = command;
     Args = args;
     Complete = complete;
 }
コード例 #2
0
ファイル: SpiffCore.cs プロジェクト: carriercomm/SpiffBot
        public void RemoveCommand(Command command)
        {
            Command outcommand;
            Commands.TryGetValue("!" + command.CommandName, out outcommand);

            if (outcommand == null)
            {
                Commands.Remove("!" + command.CommandName);
            }
        }
コード例 #3
0
ファイル: SpiffCore.cs プロジェクト: carriercomm/SpiffBot
        public void AddCommand(Command command)
        {
            Command outcommand;
            Commands.TryGetValue("!" + command.CommandName, out outcommand);

            if (outcommand == null)
            {
                Commands.Add("!" + command.CommandName, command);
            }
        }
コード例 #4
0
ファイル: Plugin.cs プロジェクト: carriercomm/SpiffBot
 protected void RegisterCommand(Command command)
 {
     SpiffCore.Instance.AddCommand(command);
 }