mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added days
This commit is contained in:
@@ -117,7 +117,7 @@ public class ListImageCommand : ICommand
|
|||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
var ts = DateTimeOffset.UtcNow - image.LastSeen;
|
var ts = DateTimeOffset.UtcNow - image.LastSeen;
|
||||||
result += $"[br]{i}: {image.Url} (Last seen {ts.TotalHours:N0}h{ts.Minutes:N0}m{ts.Seconds:N0}s ago)";
|
result += $"[br]{i}: {image.Url} (Last seen {ts.TotalDays:N0}d{ts.Hours:N0}h{ts.Minutes:N0}m{ts.Seconds:N0}s ago)";
|
||||||
}
|
}
|
||||||
|
|
||||||
await botInstance.SendChatMessagesAsync(result.FancySplitMessage(partSeparator: "[br]"),
|
await botInstance.SendChatMessagesAsync(result.FancySplitMessage(partSeparator: "[br]"),
|
||||||
|
|||||||
Reference in New Issue
Block a user