mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-11 23:40:24 +00:00
refactor: rename OB11BaseEvent
This commit is contained in:
@@ -8,7 +8,7 @@ export enum EventType {
|
||||
MESSAGE_SENT = 'message_sent',
|
||||
}
|
||||
|
||||
export abstract class OB11BaseEvent {
|
||||
export abstract class OneBotEvent {
|
||||
time = Math.floor(Date.now() / 1000);
|
||||
self_id: number;
|
||||
abstract post_type: EventType;
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EventType, OB11BaseEvent } from '../OB11BaseEvent';
|
||||
import { EventType, OneBotEvent } from '../OneBotEvent';
|
||||
|
||||
export abstract class OB11BaseMessageEvent extends OB11BaseEvent {
|
||||
export abstract class OB11BaseMessageEvent extends OneBotEvent {
|
||||
post_type = EventType.MESSAGE;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { EventType, OB11BaseEvent } from '../OB11BaseEvent';
|
||||
import { EventType, OneBotEvent } from '@/onebot/event/OneBotEvent';
|
||||
|
||||
export abstract class OB11BaseMetaEvent extends OB11BaseEvent {
|
||||
export abstract class OB11BaseMetaEvent extends OneBotEvent {
|
||||
post_type = EventType.META;
|
||||
abstract meta_event_type: string;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EventType, OB11BaseEvent } from '../OB11BaseEvent';
|
||||
import { EventType, OneBotEvent } from '@/onebot/event/OneBotEvent';
|
||||
|
||||
export abstract class OB11BaseNoticeEvent extends OB11BaseEvent {
|
||||
export abstract class OB11BaseNoticeEvent extends OneBotEvent {
|
||||
post_type = EventType.NOTICE;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { OB11BaseNoticeEvent } from '../notice/OB11BaseNoticeEvent';
|
||||
import { EventType } from '../OB11BaseEvent';
|
||||
import { EventType } from '../OneBotEvent';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
export class OB11FriendRequestEvent extends OB11BaseNoticeEvent {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { OB11GroupNoticeEvent } from '../notice/OB11GroupNoticeEvent';
|
||||
import { EventType } from '../OB11BaseEvent';
|
||||
import { EventType } from '../OneBotEvent';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
export class OB11GroupRequestEvent extends OB11GroupNoticeEvent {
|
||||
|
||||
Reference in New Issue
Block a user