Exemplo n.º 1
0
        public Task StopCheckAsync(CommandContext ctx)
        {
            if (!SwatSpaceCheckService.IsListening(ctx.Channel))
            {
                throw new CommandFailedException("No checks were started in this channel.");
            }

            SwatSpaceCheckService.RemoveListener(ctx.Channel);

            return(this.InformAsync(ctx, "Checking stopped.", important: false));
        }