Example #1
0
        public override bool Remove(IConsoleBotConfig cfg, bool callStop)
        {
            var bot = GetBot(cfg)?.Bot;

            if (bot is PokeRoutineExecutorBase b && b.Config.InitialRoutine.IsTradeBot())
            {
                Hub.Bots.Remove(b);
            }
            return(base.Remove(cfg, callStop));
        }
Example #2
0
 void IPokeBotRunner.Remove(IConsoleBotConfig state, bool callStop) => Remove(state, callStop);