fix(bot): only update discord status when gateway is enabled

This commit is contained in:
alyssa 2025-04-24 10:28:45 +00:00
parent 094ddbcea2
commit 63d9b411ae

View file

@ -282,7 +282,7 @@ public class Bot
_logger.Debug("Running once-per-minute scheduled tasks"); _logger.Debug("Running once-per-minute scheduled tasks");
// Check from a new custom status from Redis and update Discord accordingly // Check from a new custom status from Redis and update Discord accordingly
if (true) if (!_config.DisableGateway)
{ {
var newStatus = await _redis.Connection.GetDatabase().StringGetAsync("pluralkit:botstatus"); var newStatus = await _redis.Connection.GetDatabase().StringGetAsync("pluralkit:botstatus");
if (newStatus != CustomStatusMessage) if (newStatus != CustomStatusMessage)