fix: clean up some responders and commands

This commit is contained in:
sam 2024-09-02 15:06:10 +02:00
parent 9e0e53a428
commit 6e45b0f5b5
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
4 changed files with 15 additions and 10 deletions

View file

@ -6,7 +6,7 @@ using Remora.Results;
namespace Catalogger.Backend.Bot.Responders;
public class ReadyResponder(ILogger logger, WebhookExecutorService webhookExecutorService, Config config)
public class ReadyResponder(ILogger logger, WebhookExecutorService webhookExecutorService)
: IResponder<IReady>
{
private readonly ILogger _logger = logger.ForContext<ReadyResponder>();
@ -17,10 +17,6 @@ public class ReadyResponder(ILogger logger, WebhookExecutorService webhookExecut
_logger.Information("Ready as {User} on shard {ShardId} / {ShardCount}", gatewayEvent.User.Tag(), shardId.Item1,
shardId.Item2);
if (shardId.Item1 == 0) webhookExecutorService.SetSelfUser(gatewayEvent.User);
// Sanity check
var appId = gatewayEvent.Application.ID.ToUlong();
_logger.Debug("Application ID is {ApplicationId}, is same as config? {SameAsConfig}", appId,
appId == config.Discord.ApplicationId);
return Task.FromResult(Result.Success);
}