From 13ca6ff9f031edbbaff1f44448a082972665902d Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Sun, 27 Nov 2022 06:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8DV2-Yunzai=20Runtime=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 94e24c91..ed2235a6 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ setTimeout(async function () { let msgs = [`当前喵喵版本: ${Version.version}`, '您可使用 #喵喵版本 命令查看更新信息'] await relpyPrivate(msg.qq, msgs.join('\n')) } - if (!fs.existsSync(process.cwd() + (Version.isV3 ? '/lib/plugins/runtime.js' : '/lib/adapter/runtime.js'))) { + if (!fs.existsSync(process.cwd() + '/lib/plugins/runtime.js')) { let msg = '警告:未检测到runtime,miao-plugin可能无法正常工作。请升级至最新版Yunzai以使用miao-plugin' if (!await redis.get('miao:runtime-warning')) { await relpyPrivate(msg.qq, msg)