This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { writeFileSync } from 'node:fs'; | |
| import { createActionMap } from 'napcat-onebot/action/index'; | |
| import { ActionName } from 'napcat-onebot/action/router'; | |
| // 1. 制造 Mock 对象 (防止实例化报错) | |
| // 使用 Proxy 拦截所有属性读取,返回空函数或空对象 | |
| const mockCore = new Proxy({}, { | |
| get: () => new Proxy({}, { get: () => () => { } }) | |
| }) as any; |