chore: bump rob
This commit is contained in:
118 files changed
+208
-303
No files matched your search
@@ -14,14 +14,13 @@ import cn.rtast.fancybot.util.file.insertActionRecord
|
||||
import cn.rtast.rob.entity.GroupMessage
|
||||
import cn.rtast.rob.util.BaseCommand
|
||||
import cn.rtast.rob.util.ob.MessageChain
|
||||
import cn.rtast.rob.util.ob.OneBotListener
|
||||
import java.time.Instant
|
||||
|
||||
@CommandDescription("状态")
|
||||
class StatusCommand : BaseCommand() {
|
||||
override val commandNames = listOf("/status")
|
||||
|
||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||
override suspend fun executeGroup(message: GroupMessage, args: List<String>) {
|
||||
val runtime = Runtime.getRuntime()
|
||||
val maxMemory = runtime.maxMemory() / (1024 * 1024)
|
||||
val allocatedMemory = runtime.totalMemory() / (1024 * 1024)
|
||||
|
||||
Reference in New Issue
Block a user