feat: add get_clientkey

This commit is contained in:
JerryZRF
2024-12-21 20:43:15 +08:00
parent eb4a1ad952
commit bf7ca3df77
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 };
}
}