Initial commit, basic proxying working
This commit is contained in:
@@ -4,10 +4,11 @@ using System.Threading.Tasks;
|
||||
|
||||
using Autofac;
|
||||
|
||||
using DSharpPlus;
|
||||
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
using Myriad.Gateway;
|
||||
using Myriad.Rest;
|
||||
|
||||
using PluralKit.Core;
|
||||
|
||||
using Serilog;
|
||||
@@ -47,7 +48,8 @@ namespace PluralKit.Bot
|
||||
|
||||
// Start the Discord shards themselves (handlers already set up)
|
||||
logger.Information("Connecting to Discord");
|
||||
await services.Resolve<DiscordShardedClient>().StartAsync();
|
||||
var info = await services.Resolve<DiscordApiClient>().GetGatewayBot();
|
||||
await services.Resolve<Cluster>().Start(info);
|
||||
logger.Information("Connected! All is good (probably).");
|
||||
|
||||
// Lastly, we just... wait. Everything else is handled in the DiscordClient event loop
|
||||
|
||||
Reference in New Issue
Block a user