fix: remove md conditions

This commit is contained in:
ikechan8370 2024-03-06 18:15:51 +08:00 committed by GitHub
parent 1e1584b6ff
commit 6b58def252
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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