import { Middleware, Bot } from "./src"; import { EventEntityMap, MessageType } from "./src/BaseType"; import { Cover } from "./src/typeUtils"; const bot = new Bot() await bot.open({} as unknown as any) bot.on('FriendMessage', new Middleware() .use(async (ctx, next) => { await next() }).use(new Middleware().textProcessor()) .use(async ctx => { }).done(async (ctx) => { ctx }) )