private async void btn_addBots_Click(object sender, EventArgs e) { var selectedbotDifficulty = botDifficulty.Items[botDifficulty.SelectedIndex].ToString(); for (int i = 0; i < 5; i++) { var botId = BotComps.FULLCC[i]; //TEMPPPPPP var customBot = new CustomBot() { BotDifficulty = selectedbotDifficulty, ChampionId = (long)botId, TeamId = "200" }; var status = await lcu.PostData(lcu.baseURL + "/lol-lobby/v1/lobby/custom/bots", new ByteArrayContent(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(customBot)))).ConfigureAwait(true); await Task.Delay(300); } }
public CommandContext(IEnumerable<string> parameters, int chatId, CustomBot bot) { this.parameters = parameters; this.bot = bot; this.chatId = chatId; }