mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-21 22:58:10 +00:00
refactor(event): update
This commit is contained in:
parent
18ffcdbad1
commit
6b473e4874
@ -1 +1,2 @@
|
||||
export const requestMethodMap: Record<string, string> = {}
|
||||
export const emittedBuddyReqList: string[] = []
|
||||
|
@ -15,7 +15,7 @@ import { MsgType, SendType } from '@chronocat/red'
|
||||
import type { ChronocatContext } from '@chronocat/shell'
|
||||
import type { IpcManData } from 'ipcman'
|
||||
import { ipcMan } from 'ipcman'
|
||||
import { emittedBuddyReqList } from './globalVars'
|
||||
import { emittedBuddyReqList, requestMethodMap } from './globalVars'
|
||||
import {
|
||||
FriendRequestDispatchMessage,
|
||||
MessageCreatedDispatchMessage,
|
||||
@ -26,8 +26,6 @@ declare const __DEFINE_CHRONO_VERSION__: string
|
||||
export const name = 'engine-chronocat-event'
|
||||
export const version = __DEFINE_CHRONO_VERSION__
|
||||
|
||||
const requestMethodMap: Record<string, string> = {}
|
||||
|
||||
export const apply = async (ctx: ChronocatContext) => {
|
||||
const dispatcher = async (method: string, payload: unknown) => {
|
||||
switch (method) {
|
||||
|
Loading…
Reference in New Issue
Block a user