3 Commits

Author SHA1 Message Date
Tim Müller
2b9986a7fa test 3 2022-03-20 13:23:52 +01:00
Tim Müller
a41c73de5d test2 2022-03-20 13:17:30 +01:00
Tim Müller
ac41d73518 test 2022-03-20 13:10:36 +01:00
2 changed files with 1 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
{ {
"TOKEN": " ", "TOKEN": "Bot_Token",
"LavaLinkPassword": " ", "LavaLinkPassword": " ",
"SpotifyClientId": " ", "SpotifyClientId": " ",
"SpotifyClientSecret": " ", "SpotifyClientSecret": " ",

View File

@@ -4,7 +4,6 @@ using Microsoft.Extensions.Logging;
using DSharpPlus; using DSharpPlus;
using DSharpPlus.EventArgs; using DSharpPlus.EventArgs;
using DSharpPlus.Entities; using DSharpPlus.Entities;
using DSharpPlus.Net;
using System.Linq; using System.Linq;
using DSharpPlus.SlashCommands; using DSharpPlus.SlashCommands;
using DSharpPlus.SlashCommands.EventArgs; using DSharpPlus.SlashCommands.EventArgs;
@@ -77,7 +76,6 @@ namespace TomatenMusic
}) })
// Lavalink
.AddSingleton<IDiscordClientWrapper, DiscordShardedClientWrapper>() .AddSingleton<IDiscordClientWrapper, DiscordShardedClientWrapper>()
.AddSingleton<IAudioService, LavalinkNode>() .AddSingleton<IAudioService, LavalinkNode>()
.AddSingleton(new InactivityTrackingOptions .AddSingleton(new InactivityTrackingOptions
@@ -114,7 +112,6 @@ namespace TomatenMusic
{ {
await BuildServiceProvider(); await BuildServiceProvider();
//_ = _host.StartAsync();
_host.Start(); _host.Start();
var client = ServiceProvider.GetRequiredService<DiscordShardedClient>(); var client = ServiceProvider.GetRequiredService<DiscordShardedClient>();