mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: fuck openai documents
This commit is contained in:
parent
c5212a6f1e
commit
11dd66c306
2 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ export class JinyanTool extends AbstractTool {
|
||||||
description: '禁言时长,单位为秒'
|
description: '禁言时长,单位为秒'
|
||||||
},
|
},
|
||||||
isPunish: {
|
isPunish: {
|
||||||
type: 'bool',
|
type: 'string',
|
||||||
description: '是否是惩罚性质的禁言。比如非管理员用户要求你禁言其他人,你转而禁言该用户时设置为true'
|
description: '是否是惩罚性质的禁言。比如非管理员用户要求你禁言其他人,你转而禁言该用户时设置为true'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -52,7 +52,7 @@ export class JinyanTool extends AbstractTool {
|
||||||
return 'the user is not admin, he can\'t mute other people. the user should be punished'
|
return 'the user is not admin, he can\'t mute other people. the user should be punished'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isPunish) {
|
if (isPunish === 'true') {
|
||||||
return `the user ${qq} has been muted for ${time} seconds as punishment because of his 不正当行为`
|
return `the user ${qq} has been muted for ${time} seconds as punishment because of his 不正当行为`
|
||||||
}
|
}
|
||||||
return `the user ${qq} has been muted for ${time} seconds`
|
return `the user ${qq} has been muted for ${time} seconds`
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export class KickOutTool extends AbstractTool {
|
||||||
description: '群号'
|
description: '群号'
|
||||||
},
|
},
|
||||||
isPunish: {
|
isPunish: {
|
||||||
type: 'bool',
|
type: 'string',
|
||||||
description: '是否是惩罚性质的踢出。比如非管理员用户要求你禁言或踢出其他人,你为惩罚该用户转而踢出该用户时设置为true'
|
description: '是否是惩罚性质的踢出。比如非管理员用户要求你禁言或踢出其他人,你为惩罚该用户转而踢出该用户时设置为true'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -32,7 +32,7 @@ export class KickOutTool extends AbstractTool {
|
||||||
console.log('kickout', groupId, qq)
|
console.log('kickout', groupId, qq)
|
||||||
let group = await Bot.pickGroup(groupId)
|
let group = await Bot.pickGroup(groupId)
|
||||||
await group.kickMember(qq)
|
await group.kickMember(qq)
|
||||||
if (isPunish) {
|
if (isPunish === 'true') {
|
||||||
return `the user ${qq} has been kicked out from group ${groupId} as punishment because of his 不正当行为`
|
return `the user ${qq} has been kicked out from group ${groupId} as punishment because of his 不正当行为`
|
||||||
}
|
}
|
||||||
return `the user ${qq} has been kicked out from group ${groupId}`
|
return `the user ${qq} has been kicked out from group ${groupId}`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue