Update DiscordService.cs
This commit is contained in:
parent
74c64a3511
commit
1985800fed
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue