fix: fuck openai documents

This commit is contained in:
ikechan8370 2023-06-23 18:54:51 +08:00
parent c5212a6f1e
commit 11dd66c306
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ export class KickOutTool extends AbstractTool {
description: '群号'
},
isPunish: {
type: 'bool',
type: 'string',
description: '是否是惩罚性质的踢出。比如非管理员用户要求你禁言或踢出其他人你为惩罚该用户转而踢出该用户时设置为true'
}
},
@ -32,7 +32,7 @@ export class KickOutTool extends AbstractTool {
console.log('kickout', groupId, qq)
let group = await Bot.pickGroup(groupId)
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}`