Skip to content

Commit cf7ba47

Browse files
Tweak /ping response
1 parent 379dac3 commit cf7ba47

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Commands/Ping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ await ctx.EditResponseAsync(new DiscordWebhookBuilder().WithContent(
2626
+ $"Websocket ping: `{websocketPing}ms`\n"
2727
+ $"Interaction latency: `{interactionLatency}ms`\n"
2828
+ $"Database ping: {(double.IsNaN(dbPing) ? "Unreachable!" : $"`{dbPing}ms`")}\n"
29-
+ $"Uptime Kuma heartbeat status: `{Program.LastUptimeKumaHeartbeatStatus}`"));
29+
+ $"Heartbeat: `{Program.LastUptimeKumaHeartbeatStatus}`"));
3030
}
3131
}

Events/HeartbeatEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static async Task Heartbeated(IGatewayClient client)
2424
else
2525
Program.Discord.Logger.LogWarning(Program.BotEventId, "Uptime Kuma heartbeat failed: {exType}: {exMessage}\n{stackTrace}", ex.GetType(), ex.Message, ex.StackTrace);
2626

27-
Program.LastUptimeKumaHeartbeatStatus = "exception thrown";
27+
Program.LastUptimeKumaHeartbeatStatus = "failed";
2828
}
2929
}
3030
}

Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Program
3333
public static readonly IDatabase Db = Redis.GetDatabase();
3434
public static bool RedisExceptionsSuppressed;
3535
public static readonly Entities.MessageCaching.MessageCache MessageCache = new();
36-
public static string LastUptimeKumaHeartbeatStatus = "N/A";
36+
public static string LastUptimeKumaHeartbeatStatus = "waiting";
3737
public static bool GuildDownloadCompleted = false;
3838

3939
public static readonly Dictionary<string, ulong> UserFlagEmoji = new()

0 commit comments

Comments
 (0)