mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-22 11:14:55 +08:00
/runtime 的 continuous 字段添加启动时间的显示
This commit is contained in:
parent
def7ee79c2
commit
a6040a6818
@ -1,6 +1,6 @@
|
||||
## Core
|
||||
|
||||
VERSION = 0.4.2.7
|
||||
VERSION = 0.4.2.8
|
||||
|
||||
# dependencies
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user