diff --git a/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj b/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj index 0f5ca3f..e0d6185 100644 --- a/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj +++ b/Bot_Discord_CSharp/Bot_Discord_CSharp.csproj @@ -10,7 +10,6 @@ - diff --git a/Bot_Discord_CSharp/Program.cs b/Bot_Discord_CSharp/Program.cs index 845b8c1..f2b65ca 100644 --- a/Bot_Discord_CSharp/Program.cs +++ b/Bot_Discord_CSharp/Program.cs @@ -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() - .UseUrls("http://0.0.0.0:" + Environment.GetEnvironmentVariable("$PORT")) - .Build(); - - host.Run(); - Bot bot = new Bot(); bot.RunAsync().GetAwaiter().GetResult(); }