From 8adcf50e7efa2bfdd37a06c322ad482044f6a4a8 Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Mon, 17 Jun 2024 14:57:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/events/online.ts | 3 --- src/main.ts | 11 ++++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/core/events/online.ts b/src/core/events/online.ts index 3deabd9..ecdb98e 100644 --- a/src/core/events/online.ts +++ b/src/core/events/online.ts @@ -30,9 +30,6 @@ export class EventOnline extends EventListener { logger.green(`${BOT_NAME} 上线成功 版本v${cfg.package.version}`) ) logger.mark(logger.green('https://github.com/yoimiya-kokomi/Miao-Yunzai')) - // logger.mark('-----------') - /** 加载插件 */ - await this.plugins.load() /** 上线通知 */ this.loginMsg() diff --git a/src/main.ts b/src/main.ts index 8126a81..fb519ff 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,9 +10,10 @@ setTimeout(async () => { /** * run */ - await Client.run() - /** - * Loader - */ - await Client.PluginsLoader() + await Client.run().then(async () => { + /** + * Loader + */ + await Client.PluginsLoader() + }) }, 0)