NapCatQQ source snapshot
This commit is contained in:
commit
f954252a34
1111 files changed
+139867
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { NapCatCore } from 'napcat-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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user