feat(onebot): expose account session uptime

Expose account session uptime in status queries, matching the built-in status reply.

Fixes #486
This commit is contained in:
DrSmoothl committed 2026-09-27 13:41:17 +08:00
1 parent 797a4d754c
commit d610b3c90f
9 files changed
+46 -6

No files matched your search

+7
View File
@@ -146,6 +146,13 @@ describe('SnowLumaApiClient.rawResponse', () => {
});
describe('SnowLumaApiClient typed actions', () => {
it('exposes account-session uptime through getStatus', async () => {
const client = okClient({ online: true, good: true, time: 90 });
const status = await client.getStatus();
const seconds: number = status.time;
expect(seconds).toBe(90);
});
it('maps session helpers to empty-param OneBot actions', async () => {
const client = okClient();
const timeout = { timeoutMs: 2500 };