mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-03 08:39:04 +08:00
17 lines
359 B
TypeScript
17 lines
359 B
TypeScript
import { selfInfo } from '@/core/data';
|
|
|
|
export enum EventType {
|
|
META = 'meta_event',
|
|
REQUEST = 'request',
|
|
NOTICE = 'notice',
|
|
MESSAGE = 'message',
|
|
MESSAGE_SENT = 'message_sent',
|
|
}
|
|
|
|
|
|
export abstract class OB11BaseEvent {
|
|
time = Math.floor(Date.now() / 1000);
|
|
self_id = parseInt(selfInfo.uin);
|
|
post_type: EventType = EventType.META;
|
|
}
|