public async Task StartBot() { if (_goBot.IsLoggedIn) { LiveStatisticsViewModel.StartTimer(); IsBotRunning = true; await _goBot.ExecuteTasks(); IsBotRunning = false; LiveStatisticsViewModel.StopTimer(); } else { Logger.Write("You must first log in", LogLevel.WARN); } }
private void StopBot() { Logger.Write("Stopping bot.. Waiting for all actions to be done", LogLevel.INFO); _goBot.IsLoggedIn = false; LiveStatisticsViewModel.StopTimer(); }