/runtime 的 continuous 字段添加启动时间的显示

This commit is contained in:
A.C.Sukazyo Eyre 2021-12-22 14:19:07 +08:00
parent def7ee79c2
commit a6040a6818
Signed by: Eyre_S
GPG Key ID: EFB47D98FE082FAD
3 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
## Core
VERSION = 0.4.2.7
VERSION = 0.4.2.8
# dependencies

View File

@ -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;
}

View File

@ -145,8 +145,10 @@ public class OnCommandExecute extends EventListener {
- <code>%s</code>
- <code>%s [UTC]</code>
- [<code>%d</code>]
continuous
continuous:
- <code>%s</code>
- [<code>%d</code>]
- <code>%s [UTC]</code>
- [<code>%d</code>]""",
// 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));
}