refactor: rename OB11BaseEvent

This commit is contained in:
手瓜一十雪
2024-11-19 12:55:42 +08:00
parent fa6a8816f8
commit c2f8ef236b
9 changed files with 14 additions and 14 deletions

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);
}
}