Ejemplo n.º 1
0
            public async Task remove([Remainder, Summary("Condition name")] string condition)
            {
                CharacterNode old = findCharacter(Context.User);

                if (old == null)
                {
                    await Context.User.SendMessageAsync("You do not have an active character.");

                    return;
                }
                int error = old.removeCondition(condition);

                if (error == 1)
                {
                    await Context.User.SendMessageAsync("That is not a valid condition.");

                    return;
                }
                await Context.User.SendMessageAsync("Condition removed.");
            }