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

Method addAff

aff/aff.ts:80–88  ·  view source on GitHub ↗
(text: string, web_page: boolean = false)

Source from the content-addressed store, hash-verified

78 return this.db.data.affs || [];
79 }
80
81 // 新增aff
82 private async addAff(text: string, web_page: boolean = false): Promise<void> {
83 await this.initDB();
84 this.db.data.affs.push({
85 text,
86 web_page,
87 created_at: Date.now()
88 });
89 await this.db.write();
90 }
91

Callers 1

saveAffInfoMethod · 0.95

Calls 2

initDBMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected