Commit 8b3d7b91 authored by nanahira's avatar nanahira

migrate to rc1

parent d3c3de1e
This diff is collapsed.
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
}, },
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-order-picker", "homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-order-picker",
"peerDependencies": { "peerDependencies": {
"koishi": "^4.0.0-rc.0" "koishi": "^4.0.0-rc.1"
}, },
"dependencies": { "dependencies": {
"koishi-thirdeye": "^6.0.2", "koishi-thirdeye": "^7.0.2",
"moment": "^2.29.1", "moment": "^2.29.1",
"source-map-support": "^0.5.21" "source-map-support": "^0.5.21"
}, },
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1", "eslint-plugin-prettier": "^3.4.1",
"koishi": "^4.0.0-rc.0", "koishi": "^4.0.0-rc.1",
"prettier": "^2.5.1", "prettier": "^2.5.1",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"ts-loader": "^9.2.6", "ts-loader": "^9.2.6",
......
import 'source-map-support/register'; 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 { OrderPickerConfig, OrderPickerConfigLike } from './config';
import { import {
KoishiPlugin, KoishiPlugin,
...@@ -22,9 +22,6 @@ export interface PickedOrderInfo { ...@@ -22,9 +22,6 @@ export interface PickedOrderInfo {
} }
declare module 'koishi' { declare module 'koishi' {
interface Modules {
'order-picker': typeof import('.');
}
// eslint-disable-next-line @typescript-eslint/no-namespace // eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cache { namespace Cache {
interface Tables { interface Tables {
...@@ -132,7 +129,7 @@ export default class OrderPicker implements OnApply { ...@@ -132,7 +129,7 @@ export default class OrderPicker implements OnApply {
@OnGuild() @OnGuild()
@UseMiddleware() @UseMiddleware()
async detectOrder(session: Session, next: NextFunction) { async detectOrder(session: Session, next: Next) {
if (!this.config.acceptMessage(session)) return next(); if (!this.config.acceptMessage(session)) return next();
if (!(await this.isOnline(session.selfId))) return next(); if (!(await this.isOnline(session.selfId))) return next();
if (await this.getLastInfo(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