Exemple #1
0
        public void Configure(IApplicationBuilder app, ExecutorDoBot executorDoBot, IConfiguration configuracao)
        {
            var threadDoBot = new Thread(new ThreadStart(executorDoBot.Iniciar));

            threadDoBot.Start();
            app.Use(async(context, next) =>
            {
                await next();
                context.Response.Redirect($"https://discord.com/oauth2/authorize?client_id={configuracao.GetValue<string>("ID")}&scope=bot&permissions=1");
            });
            System.Console.WriteLine("FOi");
        }
Exemple #2
0
 public ServicoDeExecucaoDoBot(ExecutorDoBot executorDoBot)
 {
     ExecutorDoBot = executorDoBot;
 }