foliko 2.0.24 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -430,7 +430,7 @@ class FeishuPlugin extends Plugin {
|
|
|
430
430
|
}
|
|
431
431
|
} catch (err) {
|
|
432
432
|
log.error(' Chat error:', err)
|
|
433
|
-
await this._sendMessage(openId, `发生错误:${err.message}`, originalMsg)
|
|
433
|
+
//await this._sendMessage(openId, `发生错误:${err.message}`, originalMsg)
|
|
434
434
|
} finally {
|
|
435
435
|
this._pendingResponses.delete(openId)
|
|
436
436
|
}
|
|
@@ -654,11 +654,11 @@ class QQPlugin extends Plugin {
|
|
|
654
654
|
await agent.sendMessage(messageWithContext, { sessionId, priority: 1 })
|
|
655
655
|
} catch (err) {
|
|
656
656
|
log.error('Chat error:', err.message)
|
|
657
|
-
if (msgType === 'group') {
|
|
658
|
-
|
|
659
|
-
} else {
|
|
660
|
-
|
|
661
|
-
}
|
|
657
|
+
// if (msgType === 'group') {
|
|
658
|
+
// await this._sendGroupMessage(identifier, `发生错误:${err.message}`)
|
|
659
|
+
// } else {
|
|
660
|
+
// await this._sendMessage(identifier, `发生错误:${err.message}`)
|
|
661
|
+
// }
|
|
662
662
|
} finally {
|
|
663
663
|
}
|
|
664
664
|
}
|
|
@@ -415,8 +415,8 @@ class TelegramPlugin extends Plugin {
|
|
|
415
415
|
parse_mode: 'MarkdownV2'
|
|
416
416
|
})
|
|
417
417
|
} catch (err) {
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
log.error(' Chat error:', err)
|
|
419
|
+
//await this._bot.editMessageText(escapeMarkdown(`❌ 发生错误:${err.message}`), {
|
|
420
420
|
chat_id: chatId,
|
|
421
421
|
message_id: thinkingMsg.message_id
|
|
422
422
|
})
|
|
@@ -631,7 +631,7 @@ class WeixinPlugin extends Plugin {
|
|
|
631
631
|
await agent.sendMessage(text, { sessionId, priority: 1 })
|
|
632
632
|
} catch (err) {
|
|
633
633
|
log.error(' Chat error:', err.message)
|
|
634
|
-
await this._sendMessageBatch(originalMsg, userId, `发生错误:${err.message}`, true)
|
|
634
|
+
//await this._sendMessageBatch(originalMsg, userId, `发生错误:${err.message}`, true)
|
|
635
635
|
} finally {
|
|
636
636
|
this.stopTypingInterval()
|
|
637
637
|
}
|
package/src/common/constants.js
CHANGED