Added base discord bot

This commit is contained in:
Marcel Baumgartner
2023-03-06 20:25:21 +01:00
parent a480b35fe6
commit b4680922c8
4 changed files with 85 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ using Moonlight.App.Repositories.LogEntries;
using Moonlight.App.Repositories.Servers;
using Moonlight.App.Repositories.Subscriptions;
using Moonlight.App.Services;
using Moonlight.App.Services.DiscordBot;
using Moonlight.App.Services.Interop;
using Moonlight.App.Services.LogServices;
using Moonlight.App.Services.Notifications;
@@ -110,6 +111,9 @@ namespace Moonlight
builder.Services.AddScoped<WingsConsoleHelper>();
builder.Services.AddSingleton<PaperApiHelper>();
builder.Services.AddSingleton<HostSystemHelper>();
// Background services
builder.Services.AddSingleton<DiscordBotService>();
// Third party services
@@ -137,6 +141,9 @@ namespace Moonlight
// Support service
var supportServerService = app.Services.GetRequiredService<SupportServerService>();
// Discord bot service
var discordBotService = app.Services.GetRequiredService<DiscordBotService>();
app.Run();
}