Skip to content

Commit

Permalink
fix: gemini禁言越权问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Aug 3, 2024
1 parent 7c2961c commit ac304e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/CustomGoogleGeminiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,11 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
} else {
// execute function
try {
let isAdmin = ['admin', 'owner'].includes(this.e.sender.role)
let isOwner = ['owner'].includes(this.e.sender.role)
let args = Object.assign(functionCall.args, {
isAdmin: this.e.group?.is_admin,
isOwner: this.e.group?.is_owner,
isAdmin,
isOwner,
sender: this.e.sender,
mode: 'gemini'
})
Expand Down

0 comments on commit ac304e0

Please sign in to comment.