mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: claude 结束对话提示
This commit is contained in:
parent
7ef6051da8
commit
0451e19b09
1 changed files with 9 additions and 1 deletions
10
apps/chat.js
10
apps/chat.js
|
|
@ -209,8 +209,12 @@ export class chatgpt extends plugin {
|
|||
* @returns {Promise<void>}
|
||||
*/
|
||||
async destroyConversations (e) {
|
||||
let ats = e.message.filter(m => m.type === 'at')
|
||||
let use = await redis.get('CHATGPT:USE')
|
||||
if (use === 'claude') {
|
||||
await e.reply('由于Slack官方限制,结束Claude对话请前往网站或客户端执行/reset。', true)
|
||||
return
|
||||
}
|
||||
let ats = e.message.filter(m => m.type === 'at')
|
||||
if (ats.length === 0) {
|
||||
if (use === 'api3') {
|
||||
await redis.del(`CHATGPT:QQ_CONVERSATION:${e.sender.user_id}`)
|
||||
|
|
@ -343,6 +347,10 @@ export class chatgpt extends plugin {
|
|||
|
||||
async endAllConversations (e) {
|
||||
let use = await redis.get('CHATGPT:USE') || 'api'
|
||||
if (use === 'claude') {
|
||||
await e.reply('由于Slack官方限制,结束Claude对话请前往网站或客户端执行/reset。', true)
|
||||
return
|
||||
}
|
||||
let deleted = 0
|
||||
switch (use) {
|
||||
case 'bing': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue