27 lines
661 B
C#
27 lines
661 B
C#
using ikvm.runtime;
|
|
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using System;
|
|
using System.IO;
|
|
|
|
namespace Bot_Discord_CSharp
|
|
{
|
|
class Program
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|