mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: genshin tool fix
This commit is contained in:
parent
8bc5829777
commit
c99af43571
2 changed files with 8 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ export class QueryGenshinTool extends AbstractTool {
|
|||
}
|
||||
|
||||
func = async function (opts, e) {
|
||||
let { qq, uid, character = '' } = opts
|
||||
let { qq, uid = '', character = '' } = opts
|
||||
if (e.at === Bot.uin) {
|
||||
e.at = null
|
||||
}
|
||||
|
|
@ -32,7 +32,7 @@ export class QueryGenshinTool extends AbstractTool {
|
|||
let ProfileDetail = (await import('../../../miao-plugin/apps/profile/ProfileDetail.js')).default
|
||||
// e.msg = `#${character}面板${uid}`
|
||||
e.original_msg = `#${character}面板${uid}`
|
||||
e.user_id = qq
|
||||
e.user_id = parseInt(qq)
|
||||
e.isSr = false
|
||||
await ProfileDetail.detail(e)
|
||||
return 'the character panel of genshin impact has been sent to group. you don\'t need text version'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue