Commit 8b3d7b91 authored by nanahira's avatar nanahira

migrate to rc1

parent d3c3de1e
This diff is collapsed.
import 'source-map-support/register';
import { Context, Cache, Session, NextFunction, Bot, segment } from 'koishi';
import { Context, Cache, Session, Next, Bot, segment } from 'koishi';
import { OrderPickerConfig, OrderPickerConfigLike } from './config';
import {
KoishiPlugin,
......@@ -22,9 +22,6 @@ export interface PickedOrderInfo {
}
declare module 'koishi' {
interface Modules {
'order-picker': typeof import('.');
}
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cache {
interface Tables {
......@@ -132,7 +129,7 @@ export default class OrderPicker implements OnApply {
@OnGuild()
@UseMiddleware()
async detectOrder(session: Session, next: NextFunction) {
async detectOrder(session: Session, next: Next) {
if (!this.config.acceptMessage(session)) return next();
if (!(await this.isOnline(session.selfId))) return next();
if (await this.getLastInfo(session.selfId)) return next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment