mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-22 19:24:53 +08:00
/runtime 的 continuous 字段添加启动时间的显示
This commit is contained in:
parent
def7ee79c2
commit
a6040a6818
@ -1,6 +1,6 @@
|
|||||||
## Core
|
## Core
|
||||||
|
|
||||||
VERSION = 0.4.2.7
|
VERSION = 0.4.2.8
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ package cc.sukazyo.cono.morny;
|
|||||||
* the final field that will be updated by gradle automatically.
|
* the final field that will be updated by gradle automatically.
|
||||||
*/
|
*/
|
||||||
public class GradleProjectConfigures {
|
public class GradleProjectConfigures {
|
||||||
public static final String VERSION = "0.4.2.7";
|
public static final String VERSION = "0.4.2.8";
|
||||||
public static final long COMPILE_TIMESTAMP = 1640104964102L;
|
public static final long COMPILE_TIMESTAMP = 1640153916855L;
|
||||||
}
|
}
|
||||||
|
@ -145,8 +145,10 @@ public class OnCommandExecute extends EventListener {
|
|||||||
- <code>%s</code>
|
- <code>%s</code>
|
||||||
- <code>%s [UTC]</code>
|
- <code>%s [UTC]</code>
|
||||||
- [<code>%d</code>]
|
- [<code>%d</code>]
|
||||||
continuous
|
continuous:
|
||||||
- <code>%s</code>
|
- <code>%s</code>
|
||||||
|
- [<code>%d</code>]
|
||||||
|
- <code>%s [UTC]</code>
|
||||||
- [<code>%d</code>]""",
|
- [<code>%d</code>]""",
|
||||||
// system
|
// system
|
||||||
System.getProperty("os.name"),
|
System.getProperty("os.name"),
|
||||||
@ -165,7 +167,9 @@ public class OnCommandExecute extends EventListener {
|
|||||||
GradleProjectConfigures.COMPILE_TIMESTAMP,
|
GradleProjectConfigures.COMPILE_TIMESTAMP,
|
||||||
// continuous
|
// continuous
|
||||||
CommonFormatUtils.formatDuration(System.currentTimeMillis() - MornyCoeur.coeurStartTimestamp),
|
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));
|
).replyToMessageId(event.message().messageId()).parseMode(ParseMode.HTML));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user