Initial commit

This commit is contained in:
2022-09-04 14:06:23 +08:00
commit 10fa82b900
25 changed files with 1235 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package top.jie65535.mirai
import net.mamoe.mirai.console.plugin.jvm.JvmPluginDescription
import net.mamoe.mirai.console.plugin.jvm.KotlinPlugin
import net.mamoe.mirai.utils.info
object JGrasscutterCommand : KotlinPlugin(
JvmPluginDescription(
id = "top.jie65535.mirai.grasscutter-command",
name = "J Grasscutter Command",
version = "0.1.0",
) {
author("jie65535")
info("""聊天执行GC命令""")
}
) {
override fun onEnable() {
logger.info { "Plugin loaded" }
}
}

View File

@@ -0,0 +1,4 @@
package top.jie65535.mirai
object PluginCommands {
}

View File

@@ -0,0 +1,4 @@
package top.jie65535.mirai
object PluginConfig {
}

View File

@@ -0,0 +1,4 @@
package top.jie65535.mirai
object PluginData {
}

View File

@@ -0,0 +1,24 @@
package top.jie65535.mirai.model
import kotlinx.serialization.Serializable
/**
* 群类型
*/
@Serializable
data class Group(
/**
* 群IDQQ群号
*/
val id: Long,
/**
* 服务器ID
*/
var serverId: Int,
/**
* 是否启用(用于临时关闭)
*/
var enabled: Boolean = true,
)

View File

@@ -0,0 +1,10 @@
package top.jie65535.mirai
import kotlinx.serialization.Serializable
@Serializable
data class ServerConfig(
val id: Int,
var address: String,
var consoleToken: String,
)

View File

@@ -0,0 +1,4 @@
package top.jie65535.mirai.model
class User {
}

View File

@@ -0,0 +1,4 @@
package top.jie65535.mirai.opencommand
object OCApi {
}

View File

@@ -0,0 +1,4 @@
package top.jie65535.mirai.serializers
class LocalDateTimeSerializer {
}

View File

@@ -0,0 +1 @@
top.jie65535.mirai.JGrasscutterCommand