Delete port

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

View file

@ -10,7 +10,6 @@
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.0.0-nightly-00760" /> <PackageReference Include="DSharpPlus.CommandsNext" Version="4.0.0-nightly-00760" />
<PackageReference Include="DSharpPlus.Interactivity" Version="4.0.0-nightly-00760" /> <PackageReference Include="DSharpPlus.Interactivity" Version="4.0.0-nightly-00760" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.28" /> <PackageReference Include="HtmlAgilityPack" Version="1.11.28" />
<PackageReference Include="IKVM" Version="8.1.5717" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" /> <PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" /> <PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
</ItemGroup> </ItemGroup>

View file

@ -1,6 +1,4 @@
using ikvm.runtime; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using System; using System;
using System.IO; using System.IO;
@ -10,16 +8,6 @@ namespace Bot_Discord_CSharp
{ {
static void Main(string[] args) 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 bot = new Bot();
bot.RunAsync().GetAwaiter().GetResult(); bot.RunAsync().GetAwaiter().GetResult();
} }