6 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
Tim Müller
949958641e GitVersion update 2022-03-20 12:32:57 +01:00
Tim Müller
cce7b69871 fix MusicBot 2022-03-20 12:21:55 +01:00
Tim Müller
6258c943c5 Update GitVersion.yml 2022-03-20 12:18:26 +01:00
3 changed files with 36 additions and 15 deletions

View File

@@ -1,5 +1,29 @@
mode: ContinuousDelivery mode: ContinuousDelivery
branches: {} branches:
main:
regex: ^master$|^main$
mode: ContinuousDelivery
tag: ''
increment: None
prevent-increment-of-merged-branch-version: true
track-merge-target: false
source-branches: [ 'develop', 'release' ]
tracks-release-branches: false
is-release-branch: true
is-mainline: true
pre-release-weight: 55000
develop:
regex: ^dev(elop)?(ment)?$
mode: ContinuousDeployment
tag: pre
increment: None
prevent-increment-of-merged-branch-version: false
track-merge-target: true
source-branches: []
tracks-release-branches: true
is-release-branch: false
is-mainline: false
pre-release-weight: 0
ignore: ignore:
sha: [] sha: []
merge-message-formats: {} merge-message-formats: {}

View File

@@ -1,8 +1,8 @@
{ {
"TOKEN": "ODQwNjQ5NjU1MTAwMjQzOTY4.YJbSAA.Y0AiiFVhKLXs4b487JvobxuVk_s", "TOKEN": "Bot_Token",
"LavaLinkPassword": "SGWaldsolms9", "LavaLinkPassword": " ",
"SpotifyClientId": "14b77fa47f2f492db58cbdca8f1e5d9c", "SpotifyClientId": " ",
"SpotifyClientSecret": "c247625f0cfe4b72a1faa01b7c5b8eea", "SpotifyClientSecret": " ",
"YoutubeApiKey": "AIzaSyBIcTl9JQ9jF412mX0Wfp_3Y-4a-V0SASQ" "YoutubeApiKey": " "
} }

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>();
@@ -127,13 +124,13 @@ namespace TomatenMusic
Services = ServiceProvider Services = ServiceProvider
}); });
slash.RegisterCommands<MusicCommands>(888493810554900491); //slash.RegisterCommands<MusicCommands>(888493810554900491);
slash.RegisterCommands<PlayQueueGroup>(888493810554900491); //slash.RegisterCommands<PlayQueueGroup>(888493810554900491);
slash.RegisterCommands<PlayNowGroup>(888493810554900491); //slash.RegisterCommands<PlayNowGroup>(888493810554900491);
//slash.RegisterCommands<MusicCommands>(); slash.RegisterCommands<MusicCommands>();
//slash.RegisterCommands<PlayQueueGroup>(); slash.RegisterCommands<PlayQueueGroup>();
//slash.RegisterCommands<PlayNowGroup>(); slash.RegisterCommands<PlayNowGroup>();
await client.StartAsync(); await client.StartAsync();
client.Ready += Client_Ready; client.Ready += Client_Ready;