MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / setUserConfig

Method setUserConfig

save/save.ts:446–456  ·  view source on GitHub ↗
(userId: string, config: Partial<UserConfig>)

Source from the content-addressed store, hash-verified

444 this.db.data.users[userId] = {
445 target: "me",
446 showSource: false
447 };
448 }
449 Object.assign(this.db.data.users[userId], config);
450 await this.db.write();
451 }
452
453 // 生成消息跳转链接
454 private generateMessageLink(chatId: string, messageId: number): string {
455 // 处理私有频道的chatId转换
456 let linkChatId = chatId;
457
458 // 如果chatId是数字字符串(可能为负数)
459 if (/^-?\d+$/.test(chatId)) {

Callers 1

handleCommandMethod · 0.95

Calls 2

initDBMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected