patch(delete tgUser function)

This commit is contained in:
Nofated095 2024-02-17 08:04:39 +08:00
parent 7a3ddc4309
commit 134a21b279
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import { GroupMessageEvent, MiraiElem, PrivateMessageEvent } from 'icqq';
export default class { export default class {
constructor(private readonly instance: Instance, constructor(private readonly instance: Instance,
private readonly tgBot: Telegram, private readonly tgBot: Telegram,
private readonly tgUser: Telegram, // private readonly tgUser: Telegram,
private readonly qqBot: OicqClient) { private readonly qqBot: OicqClient) {
qqBot.addNewMessageEventHandler(this.onQqMessage); qqBot.addNewMessageEventHandler(this.onQqMessage);
} }

View File

@ -11,12 +11,12 @@ const log = getLogger('ForwardPair');
export class Pair { export class Pair {
// 群成员的 tg 账号对应它对应的 QQ 账号获取到的 Group 对象 // 群成员的 tg 账号对应它对应的 QQ 账号获取到的 Group 对象
// 只有群组模式有效 // 只有群组模式有效
public readonly instanceMapForTg = {} as { [tgUserId: string]: Group }; // public readonly instanceMapForTg = {} as { [tgUserId: string]: Group };
constructor( constructor(
public readonly qq: Friend | Group, public readonly qq: Friend | Group,
private _tg: TelegramChat, private _tg: TelegramChat,
public readonly tgUser: TelegramChat, // public readonly tgUser: TelegramChat,
public dbId: number, public dbId: number,
private _flags: number, private _flags: number,
) { ) {