refactor: rename OB11BaseEvent

This commit is contained in:
手瓜一十雪 committed 2024-11-19 12:55:42 +08:00
1 parent 9ffaab178a
commit 12cb500818
9 files changed
+14 -14

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { NapCatCore } from '@/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);
}
}