Delete port
This commit is contained in:
parent
7f80bedbf5
commit
43974704fc
2 changed files with 1 additions and 14 deletions
|
|
@ -10,7 +10,6 @@
|
|||
<PackageReference Include="DSharpPlus.CommandsNext" 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="IKVM" Version="8.1.5717" />
|
||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue