feat: add get_clientkey

This commit is contained in:
JerryZRF
2024-12-21 20:43:15 +08:00
parent fb1f122ef7
commit 2954776539
3 changed files with 131 additions and 111 deletions

View File

@@ -0,0 +1,14 @@
import { ActionName } from '@/onebot/action/router';
import { OneBotAction } from '../OneBotAction';
interface GetClientkeyResponse {
clientkey?: string;
}
export class GetClientkey extends OneBotAction<void, GetClientkeyResponse> {
actionName = ActionName.GetClientkey;
async _handle() {
return { clientkey: (await this.core.apis.UserApi.forceFetchClientKey()).clientKey };
}
}