Example #1
0
        public async Task <bool> Execute(string command)
        {
            await _botHost.ReleaseMonitorJob();

            await _botHost.LogOff();

            _botLogger.LogWarning("Successfully log out. Use command:`reboot` to reconnect.");
            return(true);
        }
Example #2
0
        public async Task <bool> Execute(string command)
        {
            await _botHost.ReleaseMonitorJob();

            _botHost.ConnectTask = _botHost.Connect((websocketAddress) =>
            {
                _botHost.MonitorTask = _botHost.MonitorEvents(websocketAddress);
            });
            await _botHost.ConnectTask;

            return(true);
        }
Example #3
0
        public async Task <bool> Execute(string command)
        {
            await _botHost.ReleaseMonitorJob();

            return(false);
        }