CardsAgainstIRC3.Game.States.Base.BotRemoveCommand C# (CSharp) Method

BotRemoveCommand() private method

private BotRemoveCommand ( CommandContext context, IEnumerable arguments ) : void
context CommandContext
arguments IEnumerable
return void
        public void BotRemoveCommand(CommandContext context, IEnumerable<string> arguments)
        {
            if (arguments.Count() == 0)
                SendInContext(context, "Usage: !bot.remove name (without <>)");

            foreach (var bot in arguments)
            {
                Manager.RemoveBot(bot);
            }

            Manager.SendPublic(context.Nick, "Bots removed: {0}", string.Join(", ", arguments));
        }