Пример #1
0
 /*public void registerCommand(String Command, Func<string[], ChannelMessageEvent, bool> Function) {
     ChannelCommands.Add (Command.ToUpper(), Function);
 }*/
 public void registerCommand(CommandExecutor Command)
 {
     Help.registerHelp (Command);
     Console.WriteLine ("adding new user command " + Command.Name);
     UserCommands.Add (Command.Name.ToUpper(), Command);
     Console.WriteLine ("adding new user command ok " + Command.Name);
 }
Пример #2
0
 public void registerHelp(CommandExecutor command)
 {
     HelpDict.Add(command.Name.ToUpper(), command);
 }