Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2b9986a7fa | ||
![]() |
a41c73de5d | ||
![]() |
ac41d73518 |
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"TOKEN": " ",
|
"TOKEN": "Bot_Token",
|
||||||
"LavaLinkPassword": " ",
|
"LavaLinkPassword": " ",
|
||||||
"SpotifyClientId": " ",
|
"SpotifyClientId": " ",
|
||||||
"SpotifyClientSecret": " ",
|
"SpotifyClientSecret": " ",
|
||||||
|
@@ -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>();
|
||||||
|
Reference in New Issue
Block a user