mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
Add basic API, only with system endpoints
This commit is contained in:
parent
ab49ad7217
commit
4874879979
18 changed files with 550 additions and 145 deletions
|
|
@ -21,18 +21,13 @@ namespace PluralKit.Bot
|
|||
{
|
||||
private IConfiguration _config;
|
||||
|
||||
static void Main(string[] args) => new Initialize { _config = new ConfigurationBuilder()
|
||||
.SetBasePath(Directory.GetCurrentDirectory())
|
||||
.AddJsonFile("pluralkit.conf", true)
|
||||
.AddEnvironmentVariables()
|
||||
.AddCommandLine(args)
|
||||
.Build()}.MainAsync().GetAwaiter().GetResult();
|
||||
static void Main(string[] args) => new Initialize { _config = InitUtils.BuildConfiguration(args).Build()}.MainAsync().GetAwaiter().GetResult();
|
||||
|
||||
private async Task MainAsync()
|
||||
{
|
||||
Console.WriteLine("Starting PluralKit...");
|
||||
|
||||
DatabaseUtils.Init();
|
||||
InitUtils.Init();
|
||||
|
||||
using (var services = BuildServiceProvider())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue