private void VS() { /* * commands.CreateCommand("VS") * .Description("Keeps track of rounds") * .Do(async (e) => * { * * * await e.Channel.SendMessage(""); * }); */ commands.CreateCommand("AddPC") .Description("Name [T/F] HP") .Parameter("Name", ParameterType.Required) .Parameter("Foe", ParameterType.Required) .Parameter("HP", ParameterType.Required) .Do(async(e) => { bool IsFoe = e.GetArg("Foe") == "true"; int HP; if (int.TryParse(e.GetArg("HP"), out HP)) { BattleSYS.MakeFighter(FightList, e.GetArg("Name"), IsFoe, HP); string REV = BattleSYS.ShowList(RoundNUM, FightList); await e.Channel.SendMessage(REV); } else { await e.Channel.SendMessage("You broke it"); } }); }
static void Main(string[] args) { BattleSYS board = new BattleSYS(); Mybot bot = new Mybot(); }