mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: add remote config over http/redis
This commit is contained in:
parent
c4db95796d
commit
a72afb35a0
12 changed files with 326 additions and 4 deletions
|
|
@ -76,6 +76,13 @@ public class Init
|
|||
// Init the bot instance itself, register handlers and such to the client before beginning to connect
|
||||
bot.Init();
|
||||
|
||||
// load runtime config from redis
|
||||
await services.Resolve<RuntimeConfigService>().LoadConfig();
|
||||
|
||||
// Start HTTP server
|
||||
if (config.HttpListenerAddr != null)
|
||||
services.Resolve<HttpListenerService>().Start(config.HttpListenerAddr);
|
||||
|
||||
// Start the Discord shards themselves (handlers already set up)
|
||||
logger.Information("Connecting to Discord");
|
||||
await StartCluster(services);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue