NapCatQQ source snapshot
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
Release Tag / validate-version (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:01:47 +08:00
commit f954252a34
1111 files changed
+139867

No files matched your search

@@ -0,0 +1,19 @@
import { NapCatCore } from 'napcat-core';
export enum EventType {
META = 'meta_event',
REQUEST = 'request',
NOTICE = 'notice',
MESSAGE = 'message',
MESSAGE_SENT = 'message_sent',
}
export abstract class OneBotEvent {
time = Math.floor(Date.now() / 1000);
self_id: number;
abstract post_type: EventType;
constructor (core: NapCatCore) {
this.self_id = parseInt(core.selfInfo.uin);
}
}