Пример #1
0
 public void AddCommand(Command cmd, User user)
 {
     if (user.Permission >= 1 && !AddCommandAlreadyMatches(cmd.Trigger))
     {
         commands.Add(cmd);
         CommandsFile file = new CommandsFile(TwitchChatBot.ChannelIn.Name.ToLower() + "_commands");
         file.Add(cmd);
         
         RemoveCommand("!list");
         _toString = ToString();
         commands.Add(new Command("!list", _toString + " and list."));
         UpdateArray();
     }
     
 }