mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: group
This commit is contained in:
parent
9be8b54faf
commit
3b807211c2
1 changed files with 1 additions and 1 deletions
|
|
@ -31,8 +31,8 @@ export class JinyanTool extends AbstractTool {
|
||||||
qq = qq !== 'all'
|
qq = qq !== 'all'
|
||||||
? isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim())
|
? isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim())
|
||||||
: 'all'
|
: 'all'
|
||||||
|
let group = await Bot.pickGroup(groupId)
|
||||||
if (qq !== 'all') {
|
if (qq !== 'all') {
|
||||||
let group = await Bot.pickGroup(groupId)
|
|
||||||
let m = await group.getMemberMap()
|
let m = await group.getMemberMap()
|
||||||
if (!m.has(qq)) {
|
if (!m.has(qq)) {
|
||||||
return `failed, the user ${qq} is not in group ${groupId}`
|
return `failed, the user ${qq} is not in group ${groupId}`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue