mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 22:00:10 +08:00
[IJ] Fix template of RunTerminal.kt
This commit is contained in:
parent
925ed039a7
commit
3d83fde396
@ -9,11 +9,11 @@ import net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
|
||||
suspend fun main() {
|
||||
MiraiConsoleTerminalLoader.startAsDaemon()
|
||||
|
||||
val pluginInstance = ${CLASS_NAME}#if (${NOT_KOTLIN} != "Kotlin").INSTANCE #end
|
||||
val pluginInstance = ${CLASS_NAME}#if (${LANGUAGE_TYPE} != "Kotlin").INSTANCE #end
|
||||
|
||||
|
||||
pluginInstance.load() // 主动加载插件, Console 会调用 MyPluginMain.onLoad
|
||||
pluginInstance.enable() // 主动启用插件, Console 会调用 MyPluginMain.onEnable
|
||||
pluginInstance.load() // 主动加载插件, Console 会调用 ${CLASS_NAME}.onLoad
|
||||
pluginInstance.enable() // 主动启用插件, Console 会调用 ${CLASS_NAME}.onEnable
|
||||
|
||||
val bot = MiraiConsole.addBot(123456, "").alsoLogin() // 登录一个测试环境的 Bot
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user