From a6040a681835eb66541d857a9b5e4ea4b913e09e Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Wed, 22 Dec 2021 14:19:07 +0800 Subject: [PATCH] =?UTF-8?q?/runtime=20=E7=9A=84=20continuous=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=B7=BB=E5=8A=A0=E5=90=AF=E5=8A=A8=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../cc/sukazyo/cono/morny/GradleProjectConfigures.java | 4 ++-- .../cc/sukazyo/cono/morny/bot/event/OnCommandExecute.java | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index a3de3a3..6ae3faa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ ## Core -VERSION = 0.4.2.7 +VERSION = 0.4.2.8 # dependencies diff --git a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java index f7af85d..a708d13 100644 --- a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java +++ b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java @@ -4,6 +4,6 @@ package cc.sukazyo.cono.morny; * the final field that will be updated by gradle automatically. */ public class GradleProjectConfigures { - public static final String VERSION = "0.4.2.7"; - public static final long COMPILE_TIMESTAMP = 1640104964102L; + public static final String VERSION = "0.4.2.8"; + public static final long COMPILE_TIMESTAMP = 1640153916855L; } diff --git a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCommandExecute.java b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCommandExecute.java index 3090192..5c4bee4 100644 --- a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCommandExecute.java +++ b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCommandExecute.java @@ -145,8 +145,10 @@ public class OnCommandExecute extends EventListener { - %s - %s [UTC] - [%d] - continuous + continuous: - %s + - [%d] + - %s [UTC] - [%d]""", // system System.getProperty("os.name"), @@ -165,7 +167,9 @@ public class OnCommandExecute extends EventListener { GradleProjectConfigures.COMPILE_TIMESTAMP, // continuous CommonFormatUtils.formatDuration(System.currentTimeMillis() - MornyCoeur.coeurStartTimestamp), - System.currentTimeMillis() - MornyCoeur.coeurStartTimestamp + System.currentTimeMillis() - MornyCoeur.coeurStartTimestamp, + CommonFormatUtils.formatDate(MornyCoeur.coeurStartTimestamp, 0), + MornyCoeur.coeurStartTimestamp ) ).replyToMessageId(event.message().messageId()).parseMode(ParseMode.HTML)); }