public void StopBot(Bot bot) { RemoveBot(bot); bot.Dispose(); }
internal BotLock(bool isValid, Bot bot) { IsValid = isValid; this.bot = bot; }
public async Task StopBot(Bot bot) { RemoveBot(bot); await bot.Scheduler.InvokeAsync(async() => await bot.Stop()); }