Skip to content

Commit d528840

Browse files
committed
Merge branch 'v2' of github.com:ikechan8370/chatgpt-plugin into v2
2 parents e0f96e3 + dc19009 commit d528840

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

utils/tools/EditCardTool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class EditCardTool extends AbstractTool {
2828
qq = isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim())
2929
groupId = isNaN(groupId) || !groupId ? e.group_id : parseInt(groupId.trim())
3030

31-
let group = await e.bot.(groupId)
31+
let group = await e.bot.pickGroup(groupId)
3232
try {
3333
let mm = await group.getMemberMap()
3434
if (!mm.has(qq)) {

utils/uploadRecord.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') {
139139
2: 3,
140140
5: {
141141
1: Contactable.target,
142-
2: getUin(e),
142+
2: getUin(),
143143
3: 0,
144144
4: hash,
145145
5: buf.length,
@@ -183,7 +183,7 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') {
183183
const fid = rsp[11].toBuffer()
184184
const b = core.pb.encode({
185185
1: 4,
186-
2: Bot.uin,
186+
2: getUin(),
187187
3: fid,
188188
4: hash,
189189
5: hash.toString('hex') + '.amr',

0 commit comments

Comments
 (0)