Delete port

This commit is contained in:
Álvaro Gómez Cuenca 2020-12-08 20:42:25 +01:00
commit 43974704fc
2 changed files with 1 additions and 14 deletions

View file

@ -1,6 +1,4 @@
using ikvm.runtime;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting;
using System;
using System.IO;
@ -10,16 +8,6 @@ namespace Bot_Discord_CSharp
{
static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseUrls("http://0.0.0.0:" + Environment.GetEnvironmentVariable("$PORT"))
.Build();
host.Run();
Bot bot = new Bot();
bot.RunAsync().GetAwaiter().GetResult();
}