fix: 修复gemini禁言和提出对非管理员不生效的问题

This commit is contained in:
ikechan8370 2025-02-16 21:29:47 +08:00
parent fcca28de37
commit 08afc95f06
2 changed files with 2 additions and 2 deletions

View file

@ -312,7 +312,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
let args = Object.assign(fc.args, { let args = Object.assign(fc.args, {
isAdmin, isAdmin,
isOwner, isOwner,
sender: this.e.sender, sender: this.e.sender.user_id,
mode: 'gemini' mode: 'gemini'
}) })
functionResponse.response.content = await chosenTool.func(args, this.e) functionResponse.response.content = await chosenTool.func(args, this.e)

View file

@ -15,7 +15,7 @@ export class JinyanTool extends AbstractTool {
}, },
time: { time: {
type: 'string', type: 'string',
description: '禁言时长单位为秒默认为600' description: '禁言时长单位为秒默认为600。如果需要解除禁言则填0.'
}, },
isPunish: { isPunish: {
type: 'string', type: 'string',