mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
import { selfInfo } from '@/common/globalVars'
|
|
|
|
export enum EventType {
|
|
META = 'meta_event',
|
|
REQUEST = 'request',
|
|
NOTICE = 'notice',
|
|
MESSAGE = 'message',
|
|
MESSAGE_SENT = 'message_sent',
|
|
}
|
|
|
|
export abstract class OB11BaseEvent {
|
|
[index: string]: any
|
|
time = Math.floor(Date.now() / 1000)
|
|
self_id = parseInt(selfInfo.uin)
|
|
abstract post_type: EventType
|
|
}
|