feat(onebot): emit bot_status on account session edges

Give downstream bots a notice when an account comes up or goes down, so they can handle their own alerts. Operator notification channels are unchanged.
This commit is contained in:
DrSmoothl committed 2026-09-16 17:04:06 +08:00
1 parent f2d58d2f79
commit ad36d47cf0
9 files changed
+307 -10

No files matched your search

@@ -31,6 +31,7 @@ function fakeInstance(
nickname: `retiring-${uin}`,
quiesce,
dispose,
emitBotStatus: vi.fn(async () => undefined),
startGroupRequestPolling: vi.fn(),
getConnectionStatuses: () => statuses,
} as unknown as OneBotInstance;