Commit 56c43b89 authored by nanahira's avatar nanahira

fix compile

parent 3c44472b
This diff is collapsed.
...@@ -47,12 +47,12 @@ ...@@ -47,12 +47,12 @@
"testEnvironment": "node" "testEnvironment": "node"
}, },
"dependencies": { "dependencies": {
"koishi-thirdeye": "^10.2.8", "koishi-thirdeye": "^10.3.1",
"moment": "^2.29.3" "moment": "^2.29.3"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.7.4", "koishi": "^4.7.5",
"koishi-plugin-pics": "^9.3.3" "koishi-plugin-pics": "^9.4.1"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-cache-lru": "^1.0.0-rc.0", "@koishijs/plugin-cache-lru": "^1.0.0-rc.0",
...@@ -67,9 +67,9 @@ ...@@ -67,9 +67,9 @@
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^3.4.1", "eslint-plugin-prettier": "^3.4.1",
"jest": "^28.0.3", "jest": "^28.0.3",
"koishi-plugin-pics": "^9.3.3", "koishi-plugin-pics": "^9.4.1",
"koishi-plugin-picsource-heisi": "^6.0.3", "koishi-plugin-picsource-heisi": "^6.0.3",
"koishi-plugin-picsource-lolicon": "^9.2.0", "koishi-plugin-picsource-lolicon": "^9.2.3",
"koishi-plugin-picsource-miraikoi": "^1.0.2", "koishi-plugin-picsource-miraikoi": "^1.0.2",
"koishi-plugin-picsource-yande": "^2.0.3", "koishi-plugin-picsource-yande": "^2.0.3",
"prettier": "^2.6.2", "prettier": "^2.6.2",
......
...@@ -5,8 +5,9 @@ import { ...@@ -5,8 +5,9 @@ import {
PutOption, PutOption,
SchemaOptions, SchemaOptions,
PutSession, PutSession,
Selection,
} from 'koishi-thirdeye'; } from 'koishi-thirdeye';
import { Adapter, Bot, Random, Selection, Session } from 'koishi'; import { Adapter, Bot, Random, Session } from 'koishi';
import path from 'path'; import path from 'path';
import * as fs from 'fs'; import * as fs from 'fs';
import moment from 'moment'; import moment from 'moment';
......
...@@ -14,6 +14,7 @@ import { ...@@ -14,6 +14,7 @@ import {
UseMiddleware, UseMiddleware,
OnPrivate, OnPrivate,
PutBot, PutBot,
selectContext,
} from 'koishi-thirdeye'; } from 'koishi-thirdeye';
import { Adapter, Bot, Logger, Next, Session } from 'koishi'; import { Adapter, Bot, Logger, Next, Session } from 'koishi';
import type PicsContainer from 'koishi-plugin-pics'; import type PicsContainer from 'koishi-plugin-pics';
...@@ -77,7 +78,7 @@ export default class EdgingPlugin ...@@ -77,7 +78,7 @@ export default class EdgingPlugin
implements LifecycleEvents implements LifecycleEvents
{ {
onApply() { onApply() {
this.ctx.select(this.config.panelSelection).plugin(EdgingPanel); selectContext(this.ctx, this.config.panelSelection).plugin(EdgingPanel);
dynamicInterval( dynamicInterval(
this.ctx, this.ctx,
this.wrapTry(() => this.processText(), 'process text'), this.wrapTry(() => this.processText(), 'process text'),
......
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