refactor: 重构lib代码(无实质性功能更新,可不更新)

This commit is contained in:
bietiaop 2024-08-22 13:34:08 +08:00
parent a7f06d404b
commit aa3b7928ec
26 changed files with 547 additions and 483 deletions

View file

@ -22,7 +22,10 @@ export class Note extends ZZZPlugin {
async note() {
const { api } = await this.getAPI();
await this.getPlayerInfo();
const noteResponse = await api.getFinalData(this.e, 'zzzNote');
const noteResponse = await api.getFinalData('zzzNote').catch(e => {
this.reply(e.message);
throw e;
});
if (!noteResponse) return false;
const noteData = new ZZZNoteResp(noteResponse);
const finalData = {