Update DiscordService.cs

This commit is contained in:
Madpeter 2023-12-01 10:11:49 +00:00
parent 74c64a3511
commit 1985800fed

View file

@ -839,6 +839,10 @@ namespace SecondBotEvents.Services
ITextChannel statusChannel = GetChannel("status", StatusPrefill(), "bot");
if ((e.changed == false) && (LastStatusMessageId != 0))
{
if (dif < 15)
{
return;
}
LastUpdatedSystemStatus = SecondbotHelpers.UnixTimeNow();
if (messageHasEndDot == false)
{
@ -852,6 +856,10 @@ namespace SecondBotEvents.Services
messageHasEndDot = false;
return;
}
if (dif < 15)
{
return;
}
LastStatusMessageId = SendMessageToChannel(statusChannel, e.message);
LastMessageContent = e.message;
}