fix: button under icqq

This commit is contained in:
ikechan8370 2024-03-01 00:31:26 +08:00
parent 7014df3ecd
commit 6d03b5b2f9

View file

@ -53,7 +53,7 @@ export class ChatGPTButtonHandler extends plugin {
async btnHandler (e, options, reject) {
logger.mark('[chatgpt按钮处理器]')
if (e.adapter !== 'shamrock' && (!segment.button || segment.button(1) !== 1)) {
if (e.adapter !== 'shamrock' && (!segment.button || segment.button(1)?.content !== 1)) {
return null
}
const fnc = e.logFnc