diff --git a/CFDiscordBot/Commands/DebugCommands.cs b/CFDiscordBot/Commands/DebugCommands.cs index 444d953..a5d963e 100644 --- a/CFDiscordBot/Commands/DebugCommands.cs +++ b/CFDiscordBot/Commands/DebugCommands.cs @@ -15,25 +15,25 @@ public async Task PingAsync() await Context.Interaction.DeleteOriginalResponseAsync(); } - [SlashCommand("shardinfo", "Returns information about the shard")] - public async Task ShardInfoAsync() - { - var shardId = Context.Client.GetShardIdFor(Context.Guild); - var shard = Context.Client.GetShard(shardId); + // [SlashCommand("shardinfo", "Returns information about the shard")] + // public async Task ShardInfoAsync() + // { + // var shardId = Context.Client.GetShardIdFor(Context.Guild); + // var shard = Context.Client.GetShard(shardId); - var embed = new EmbedBuilder() - .WithTitle("Shard Information") - .WithDescription($""" -Shard ID: {shardId} -Guilds: {shard.Guilds.Count} -Users: {shard.Guilds.Sum(x => x.MemberCount)} -Channels: {shard.Guilds.Sum(x => x.Channels.Count)} -Latency: {shard.Latency}ms -""") - .WithColor(Color.Blue) - .Build(); + // var embed = new EmbedBuilder() + // .WithTitle("Shard Information") + // .WithDescription($""" + //Shard ID: {shardId} + //Guilds: {shard.Guilds.Count} + //Users: {shard.Guilds.Sum(x => x.MemberCount)} + //Channels: {shard.Guilds.Sum(x => x.Channels.Count)} + //Latency: {shard.Latency}ms + //""") + // .WithColor(Color.Blue) + // .Build(); - await RespondAsync(embeds: new[] { embed }, ephemeral: true); - } + // await RespondAsync(embeds: new[] { embed }, ephemeral: true); + // } } } diff --git a/CFDiscordBot/DiscordBot.cs b/CFDiscordBot/DiscordBot.cs index 6286aad..b5777f4 100644 --- a/CFDiscordBot/DiscordBot.cs +++ b/CFDiscordBot/DiscordBot.cs @@ -1,5 +1,4 @@ -using CurseForge.APIClient; -using Discord; +using Discord; using Discord.Interactions; using Discord.WebSocket; using Microsoft.Extensions.Hosting; @@ -12,7 +11,6 @@ public partial class DiscordBot( ILogger logger, DiscordShardedClient discordClient, string botToken, - ApiClient apiClient, IServiceProvider serviceProvider ) : BackgroundService { diff --git a/CFDiscordBot/Program.cs b/CFDiscordBot/Program.cs index 84bcb85..5556340 100644 --- a/CFDiscordBot/Program.cs +++ b/CFDiscordBot/Program.cs @@ -28,7 +28,6 @@ await Host.CreateDefaultBuilder(args) x.GetRequiredService>(), x.GetRequiredService(), configuration["Discord:BotToken"]!, - x.GetRequiredService(), x ) );