From 2d04ab2e721c28dd011c7e5ed794dadc3803686e Mon Sep 17 00:00:00 2001 From: linyuchen Date: Wed, 10 Jul 2024 13:47:44 +0800 Subject: [PATCH] fix: crychic crash --- src/main/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/main.ts b/src/main/main.ts index 6fc578d..d846181 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -13,7 +13,7 @@ import { CHANNEL_UPDATE, } from '../common/channels' import { ob11WebsocketServer } from '../onebot11/server/ws/WebsocketServer' -import { DATA_DIR } from '../common/utils' +import { DATA_DIR, qqPkgInfo } from '../common/utils' import { friendRequests, getFriend, @@ -202,7 +202,7 @@ function onLoad() { async function startReceiveHook() { startHook().then() - if (getConfigUtil().getConfig().enablePoke) { + if (getConfigUtil().getConfig().enablePoke && qqPkgInfo.buildVersion <= '23873') { crychic.loadNode() crychic.registerPokeHandler((id, isGroup) => { log(`收到戳一戳消息了!是否群聊:${isGroup},id:${id}`)