mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 修复slask替换emoji后导致的复读bug
This commit is contained in:
parent
1a96572bf7
commit
08e95dc618
1 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ export class SlackClaudeClient {
|
|||
return await this.sendMessage(prompt, e, t + 1)
|
||||
}
|
||||
let reply = formalMessages[formalMessages.length - 1]
|
||||
if (reply.text !== `<@${Config.slackClaudeUserId}> ${prompt}`) {
|
||||
if (!reply.text.startsWith(`<@${Config.slackClaudeUserId}>`)) {
|
||||
response = reply.text
|
||||
if (Config.debug) {
|
||||
let text = response.replace('_Typing…_', '')
|
||||
|
|
@ -124,7 +124,7 @@ export class SlackClaudeClient {
|
|||
return await this.sendMessage(prompt, e, t + 1)
|
||||
}
|
||||
let reply = formalMessages[formalMessages.length - 1]
|
||||
if (reply.text !== `<@${Config.slackClaudeUserId}> ${prompt}`) {
|
||||
if (!reply.text.startsWith(`<@${Config.slackClaudeUserId}>`)) {
|
||||
response = reply.text
|
||||
if (Config.debug) {
|
||||
let text = response.replace('_Typing…_', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue