mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
refactor: 重构lib代码(无实质性功能更新,可不更新)
This commit is contained in:
parent
a7f06d404b
commit
aa3b7928ec
26 changed files with 547 additions and 483 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue