feat: attempt to enhance type inference

This commit is contained in:
pk5ls20
2024-12-14 05:56:49 +08:00
parent 7b693132f9
commit a6adde7966
12 changed files with 180 additions and 169 deletions

View File

@@ -4,7 +4,10 @@ import { ActionMap } from "@/onebot/action";
export const plugin_onmessage = async (adapter: string, core: NapCatCore, obCore: NapCatOneBot11Adapter, message: OB11Message, action: ActionMap) => {
if (message.raw_message === 'ping') {
// TODO:
// const a = action.get('fetch_user_profilqe_like');
const ssa = action.get('fetch_user_profile_like');
const ret = await action.get('send_group_msg')?.handle({ group_id: String(message.group_id), message: 'pong' }, adapter);
console.log(ret);
}
}
}