mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
20 lines
431 B
TypeScript
20 lines
431 B
TypeScript
import { NapCatCore } from '@/core';
|
|
|
|
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: number;
|
|
abstract post_type: EventType;
|
|
|
|
constructor(core: NapCatCore) {
|
|
this.self_id = parseInt(core.selfInfo.uin);
|
|
}
|
|
}
|