From 959f24225cb5fe9686a6f15a694219220dbadaf0 Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Tue, 18 Jun 2024 23:02:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=A1=E5=9D=97=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/bot.ts | 6 ------ src/db/index.ts | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/bot.ts b/src/core/bot.ts index 1a52e25..53ea51d 100644 --- a/src/core/bot.ts +++ b/src/core/bot.ts @@ -69,12 +69,6 @@ export class Client extends IcqqClient { } } -/** - * 不推荐使用,可能放弃 - * @deprecated - */ -export const Redis = global.redis - /** * 机器人客户端 */ diff --git a/src/db/index.ts b/src/db/index.ts index d41f98b..920679f 100644 --- a/src/db/index.ts +++ b/src/db/index.ts @@ -3,3 +3,9 @@ import MysUserDB from './MysUserDB.js' import UserGameDB from './UserGameDB.js' import { sequelize } from './BaseModel.js' export { UserDB, MysUserDB, UserGameDB, sequelize } + +/** + * 不推荐使用,可能放弃 + * @deprecated + */ +export const Redis = global.redis