Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 private void StopBot()
 {
     Logger.Write("Stopping bot.. Waiting for all actions to be done", LogLevel.INFO);
     _goBot.IsLoggedIn = false;
     LiveStatisticsViewModel.StopTimer();
 }