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