Commit 56c43b89 authored by nanahira's avatar nanahira

fix compile

parent 3c44472b
......@@ -9,7 +9,7 @@
"version": "1.2.3",
"license": "MIT",
"dependencies": {
"koishi-thirdeye": "^10.2.8",
"koishi-thirdeye": "^10.3.1",
"moment": "^2.29.3"
},
"devDependencies": {
......@@ -25,9 +25,9 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^3.4.1",
"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-lolicon": "^9.2.0",
"koishi-plugin-picsource-lolicon": "^9.2.3",
"koishi-plugin-picsource-miraikoi": "^1.0.2",
"koishi-plugin-picsource-yande": "^2.0.3",
"prettier": "^2.6.2",
......@@ -41,8 +41,8 @@
"ws": "^8.6.0"
},
"peerDependencies": {
"koishi": "^4.7.4",
"koishi-plugin-pics": "^9.3.3"
"koishi": "^4.7.5",
"koishi-plugin-pics": "^9.4.1"
}
},
"node_modules/@ampproject/remapping": {
......@@ -1134,15 +1134,15 @@
}
},
"node_modules/@koishijs/core": {
"version": "4.7.4",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.4.tgz",
"integrity": "sha512-S4pPaO05WC0htkQVcTMTluBZv4g8sEEBJ2ItHN2zJA8syet3iKJidT+s2gYt8d2rBo0Ndlvo1gBLGLNl/Zc9yg==",
"version": "4.7.5",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.5.tgz",
"integrity": "sha512-So8tBtSTVIq8dTGs/0o92Om3bQhgYUhmzVhnYTqJbx+kW3kSowl/ORiBhJFK3GR6Dj+JyKLptsqQNE4DjZdNhw==",
"peer": true,
"dependencies": {
"@koishijs/utils": "^5.4.5",
"cordis": "^1.3.3",
"cordis": "^1.5.5",
"fastest-levenshtein": "^1.0.12",
"minato": "^1.1.0"
"minato": "^1.2.1"
},
"engines": {
"node": ">=12.0.0"
......@@ -2670,9 +2670,9 @@
"peer": true
},
"node_modules/cordis": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.3.3.tgz",
"integrity": "sha512-mpyBWAEVYX8/YHoGWIqaOjrOk6DmtrOWZfsBSinNR+nDBlB39Ks6aC1B5oZ7AdnVoRE2ZYBCGecoHrlxcRxd6w==",
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.5.5.tgz",
"integrity": "sha512-vCw6FA+OLO5e40so5XjhRnIw1ldGH1L74q/wlnuckqFtIq8teYkfnnmlNTS24RJNcgPz2DWdbVgCnoc+5Lc+UQ==",
"peer": true,
"dependencies": {
"cosmokit": "^1.1.2"
......@@ -5377,13 +5377,13 @@
}
},
"node_modules/koishi": {
"version": "4.7.4",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.4.tgz",
"integrity": "sha512-VVHf3TyFsTuKrB8IZffxwmwiGx+zyhDo+DNNEFQjvomgqFdGEceAnLxNIf10K48aB1CDmkmi37b6uaURi4Z1Hw==",
"version": "4.7.5",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.5.tgz",
"integrity": "sha512-Q+czD5hZIsikYwdoKUOZFZIuvXoamikXK6iX4FXnHUPsoXX16PjqX3D1sBKd9JLVMA49KSAGoFW0fN9IMHykYw==",
"peer": true,
"dependencies": {
"@koa/router": "^10.1.1",
"@koishijs/core": "^4.7.4",
"@koishijs/core": "^4.7.5",
"@koishijs/utils": "^5.4.5",
"@types/koa": "*",
"@types/koa__router": "*",
......@@ -5392,7 +5392,7 @@
"file-type": "^16.5.3",
"koa": "^2.13.4",
"koa-bodyparser": "^4.3.0",
"ns-require": "^1.1.2",
"ns-require": "^1.1.4",
"parseurl": "^1.3.3",
"path-to-regexp": "^6.2.1",
"portfinder": "^1.0.28",
......@@ -5404,9 +5404,9 @@
}
},
"node_modules/koishi-decorators": {
"version": "2.1.6",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-2.1.6.tgz",
"integrity": "sha512-G1NN31fCIOafKkDME4YBzgHZ6J3b/CjsKr2AszZw9rmH6j7qHbs3PxXrkEK7zFSvTJh1RLHR2gDMhxqC7A3zTQ==",
"version": "2.1.7",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-2.1.7.tgz",
"integrity": "sha512-OoExVOdpVEmv8FywtdjR8JUPQtBz1P2rabkIfmt3SQpp3jrkm67EgdQNH+Nw8+6CfSDukMP3+/xWsA64VE5VEQ==",
"dependencies": {
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
......@@ -5417,20 +5417,20 @@
"typed-reflector": "^1.0.10"
},
"peerDependencies": {
"koishi": "^4.7.4"
"koishi": "^4.7.5"
}
},
"node_modules/koishi-plugin-pics": {
"version": "9.3.3",
"resolved": "https://registry.npmjs.org/koishi-plugin-pics/-/koishi-plugin-pics-9.3.3.tgz",
"integrity": "sha512-PvBVJw9wAm8u+Cgn4ykrFbWZzA7uxq050rnpMOWjWz3qVG5NbaHimTQYbKhQoqCEHjVenCdj/JMCRjVtzrYHzg==",
"version": "9.4.1",
"resolved": "https://registry.npmjs.org/koishi-plugin-pics/-/koishi-plugin-pics-9.4.1.tgz",
"integrity": "sha512-TmUpK9hKwcBSbc1zrWaZksvs0a7xfFSvVSTsGkOG6QIMX38cEVGqzeFDy58Hu1f8CR2gJNenM53hI/6lq2Dd2Q==",
"dev": true,
"dependencies": {
"koishi-thirdeye": "^10.2.5",
"koishi-thirdeye": "^10.3.1",
"lodash": "^4.17.21"
},
"peerDependencies": {
"koishi": "^4.7.4"
"koishi": "^4.7.5"
}
},
"node_modules/koishi-plugin-picsource-heisi": {
......@@ -5448,16 +5448,16 @@
}
},
"node_modules/koishi-plugin-picsource-lolicon": {
"version": "9.2.0",
"resolved": "https://registry.npmjs.org/koishi-plugin-picsource-lolicon/-/koishi-plugin-picsource-lolicon-9.2.0.tgz",
"integrity": "sha512-7IyrXkNhrEfb9MBgcvbdzI9w+MHCjFBKAOJGkuG/isC7DCJENmPAywDqkV0gsCrDJOSJ0Ns0TfCQ26FXsxjd/Q==",
"version": "9.2.3",
"resolved": "https://registry.npmjs.org/koishi-plugin-picsource-lolicon/-/koishi-plugin-picsource-lolicon-9.2.3.tgz",
"integrity": "sha512-qF4+Tj0sSxmotvAeDjHW3N2w8YDo+3UJuRUp62kgsB5008ymRWcNX+zP6rtKapuKp4i/jJN5B2Z/NfaA0NjwvA==",
"dev": true,
"dependencies": {
"koishi-thirdeye": "^10.2.1"
"koishi-thirdeye": "^10.2.8"
},
"peerDependencies": {
"koishi": "^4.7.0",
"koishi-plugin-pics": "^9.3.0"
"koishi": "^4.7.4",
"koishi-plugin-pics": "^9.3.3"
}
},
"node_modules/koishi-plugin-picsource-miraikoi": {
......@@ -5487,13 +5487,13 @@
}
},
"node_modules/koishi-thirdeye": {
"version": "10.2.8",
"resolved": "https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-10.2.8.tgz",
"integrity": "sha512-fjHDMvc9SxwDuh7E34sl2qvpHrtkYQcrwrHXqk6K8X9sw0RiznL0QSx0EgPqUtr7QkbTm96p2J7MCPaTl5trWg==",
"version": "10.3.1",
"resolved": "https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-10.3.1.tgz",
"integrity": "sha512-MEppegxBnl9MgwHxjXzItsgzmMnizewllJsuFGRyWasacOHrXieHTG07yGEVKhc8yWJT2JuqS79WI7excXcBXQ==",
"dependencies": {
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
"koishi-decorators": "^2.1.6",
"koishi-decorators": "^2.1.7",
"lodash": "^4.17.21",
"minato-decorators": "^2.0.7",
"reflect-metadata": "^0.1.13",
......@@ -5501,7 +5501,7 @@
"typed-reflector": "^1.0.10"
},
"peerDependencies": {
"koishi": "^4.7.4",
"koishi": "^4.7.5",
"schemastery": "^3.4.3"
}
},
......@@ -5720,13 +5720,13 @@
}
},
"node_modules/minato": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/minato/-/minato-1.1.0.tgz",
"integrity": "sha512-by1KMWxWlzq0iDV7tMkqS3thDRzYNQoS2ECfX5HRpMGaPQJqSgm5aY9IAky7knwAMoW3cMxQ/IhpvEShQqyj6A==",
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/minato/-/minato-1.2.1.tgz",
"integrity": "sha512-BYY18rr82aXAAVtMKkN4yDFsTUtsAmeDmyTRVOXG3mEzG74sNF5TU1nVT1QSC9dpvAcCFFs/vZO2rJoC8vSetQ==",
"peer": true,
"dependencies": {
"cosmokit": "^1.1.2",
"ns-require": "^1.1.2"
"ns-require": "^1.1.4"
}
},
"node_modules/minato-decorators": {
......@@ -5856,9 +5856,9 @@
}
},
"node_modules/ns-require": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.2.tgz",
"integrity": "sha512-GUF6I1hWDsGx1cA9FW27KIRAlkMel2UZagR39dVNPAPBgwWK1Ez0XB96WEz2OFcwHsCORI9h75dEZueHqZ/1pA==",
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.4.tgz",
"integrity": "sha512-Zk25pQj4u5i6DS0vaNO5aSSXewybVqqVVjz8AOxFy9DNPtmu3jlexMz6kUXLV2oB+X6iQeAnHXSzj5Qz/IeDaQ==",
"peer": true
},
"node_modules/object-inspect": {
......@@ -8790,15 +8790,15 @@
}
},
"@koishijs/core": {
"version": "4.7.4",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.4.tgz",
"integrity": "sha512-S4pPaO05WC0htkQVcTMTluBZv4g8sEEBJ2ItHN2zJA8syet3iKJidT+s2gYt8d2rBo0Ndlvo1gBLGLNl/Zc9yg==",
"version": "4.7.5",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.5.tgz",
"integrity": "sha512-So8tBtSTVIq8dTGs/0o92Om3bQhgYUhmzVhnYTqJbx+kW3kSowl/ORiBhJFK3GR6Dj+JyKLptsqQNE4DjZdNhw==",
"peer": true,
"requires": {
"@koishijs/utils": "^5.4.5",
"cordis": "^1.3.3",
"cordis": "^1.5.5",
"fastest-levenshtein": "^1.0.12",
"minato": "^1.1.0"
"minato": "^1.2.1"
}
},
"@koishijs/plugin-cache-lru": {
......@@ -10047,9 +10047,9 @@
"peer": true
},
"cordis": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.3.3.tgz",
"integrity": "sha512-mpyBWAEVYX8/YHoGWIqaOjrOk6DmtrOWZfsBSinNR+nDBlB39Ks6aC1B5oZ7AdnVoRE2ZYBCGecoHrlxcRxd6w==",
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.5.5.tgz",
"integrity": "sha512-vCw6FA+OLO5e40so5XjhRnIw1ldGH1L74q/wlnuckqFtIq8teYkfnnmlNTS24RJNcgPz2DWdbVgCnoc+5Lc+UQ==",
"peer": true,
"requires": {
"cosmokit": "^1.1.2"
......@@ -12073,13 +12073,13 @@
}
},
"koishi": {
"version": "4.7.4",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.4.tgz",
"integrity": "sha512-VVHf3TyFsTuKrB8IZffxwmwiGx+zyhDo+DNNEFQjvomgqFdGEceAnLxNIf10K48aB1CDmkmi37b6uaURi4Z1Hw==",
"version": "4.7.5",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.5.tgz",
"integrity": "sha512-Q+czD5hZIsikYwdoKUOZFZIuvXoamikXK6iX4FXnHUPsoXX16PjqX3D1sBKd9JLVMA49KSAGoFW0fN9IMHykYw==",
"peer": true,
"requires": {
"@koa/router": "^10.1.1",
"@koishijs/core": "^4.7.4",
"@koishijs/core": "^4.7.5",
"@koishijs/utils": "^5.4.5",
"@types/koa": "*",
"@types/koa__router": "*",
......@@ -12088,7 +12088,7 @@
"file-type": "^16.5.3",
"koa": "^2.13.4",
"koa-bodyparser": "^4.3.0",
"ns-require": "^1.1.2",
"ns-require": "^1.1.4",
"parseurl": "^1.3.3",
"path-to-regexp": "^6.2.1",
"portfinder": "^1.0.28",
......@@ -12097,9 +12097,9 @@
}
},
"koishi-decorators": {
"version": "2.1.6",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-2.1.6.tgz",
"integrity": "sha512-G1NN31fCIOafKkDME4YBzgHZ6J3b/CjsKr2AszZw9rmH6j7qHbs3PxXrkEK7zFSvTJh1RLHR2gDMhxqC7A3zTQ==",
"version": "2.1.7",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-2.1.7.tgz",
"integrity": "sha512-OoExVOdpVEmv8FywtdjR8JUPQtBz1P2rabkIfmt3SQpp3jrkm67EgdQNH+Nw8+6CfSDukMP3+/xWsA64VE5VEQ==",
"requires": {
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
......@@ -12111,12 +12111,12 @@
}
},
"koishi-plugin-pics": {
"version": "9.3.3",
"resolved": "https://registry.npmjs.org/koishi-plugin-pics/-/koishi-plugin-pics-9.3.3.tgz",
"integrity": "sha512-PvBVJw9wAm8u+Cgn4ykrFbWZzA7uxq050rnpMOWjWz3qVG5NbaHimTQYbKhQoqCEHjVenCdj/JMCRjVtzrYHzg==",
"version": "9.4.1",
"resolved": "https://registry.npmjs.org/koishi-plugin-pics/-/koishi-plugin-pics-9.4.1.tgz",
"integrity": "sha512-TmUpK9hKwcBSbc1zrWaZksvs0a7xfFSvVSTsGkOG6QIMX38cEVGqzeFDy58Hu1f8CR2gJNenM53hI/6lq2Dd2Q==",
"dev": true,
"requires": {
"koishi-thirdeye": "^10.2.5",
"koishi-thirdeye": "^10.3.1",
"lodash": "^4.17.21"
}
},
......@@ -12131,12 +12131,12 @@
}
},
"koishi-plugin-picsource-lolicon": {
"version": "9.2.0",
"resolved": "https://registry.npmjs.org/koishi-plugin-picsource-lolicon/-/koishi-plugin-picsource-lolicon-9.2.0.tgz",
"integrity": "sha512-7IyrXkNhrEfb9MBgcvbdzI9w+MHCjFBKAOJGkuG/isC7DCJENmPAywDqkV0gsCrDJOSJ0Ns0TfCQ26FXsxjd/Q==",
"version": "9.2.3",
"resolved": "https://registry.npmjs.org/koishi-plugin-picsource-lolicon/-/koishi-plugin-picsource-lolicon-9.2.3.tgz",
"integrity": "sha512-qF4+Tj0sSxmotvAeDjHW3N2w8YDo+3UJuRUp62kgsB5008ymRWcNX+zP6rtKapuKp4i/jJN5B2Z/NfaA0NjwvA==",
"dev": true,
"requires": {
"koishi-thirdeye": "^10.2.1"
"koishi-thirdeye": "^10.2.8"
}
},
"koishi-plugin-picsource-miraikoi": {
......@@ -12158,13 +12158,13 @@
}
},
"koishi-thirdeye": {
"version": "10.2.8",
"resolved": "https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-10.2.8.tgz",
"integrity": "sha512-fjHDMvc9SxwDuh7E34sl2qvpHrtkYQcrwrHXqk6K8X9sw0RiznL0QSx0EgPqUtr7QkbTm96p2J7MCPaTl5trWg==",
"version": "10.3.1",
"resolved": "https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-10.3.1.tgz",
"integrity": "sha512-MEppegxBnl9MgwHxjXzItsgzmMnizewllJsuFGRyWasacOHrXieHTG07yGEVKhc8yWJT2JuqS79WI7excXcBXQ==",
"requires": {
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
"koishi-decorators": "^2.1.6",
"koishi-decorators": "^2.1.7",
"lodash": "^4.17.21",
"minato-decorators": "^2.0.7",
"reflect-metadata": "^0.1.13",
......@@ -12344,13 +12344,13 @@
"dev": true
},
"minato": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/minato/-/minato-1.1.0.tgz",
"integrity": "sha512-by1KMWxWlzq0iDV7tMkqS3thDRzYNQoS2ECfX5HRpMGaPQJqSgm5aY9IAky7knwAMoW3cMxQ/IhpvEShQqyj6A==",
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/minato/-/minato-1.2.1.tgz",
"integrity": "sha512-BYY18rr82aXAAVtMKkN4yDFsTUtsAmeDmyTRVOXG3mEzG74sNF5TU1nVT1QSC9dpvAcCFFs/vZO2rJoC8vSetQ==",
"peer": true,
"requires": {
"cosmokit": "^1.1.2",
"ns-require": "^1.1.2"
"ns-require": "^1.1.4"
}
},
"minato-decorators": {
......@@ -12453,9 +12453,9 @@
}
},
"ns-require": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.2.tgz",
"integrity": "sha512-GUF6I1hWDsGx1cA9FW27KIRAlkMel2UZagR39dVNPAPBgwWK1Ez0XB96WEz2OFcwHsCORI9h75dEZueHqZ/1pA==",
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.4.tgz",
"integrity": "sha512-Zk25pQj4u5i6DS0vaNO5aSSXewybVqqVVjz8AOxFy9DNPtmu3jlexMz6kUXLV2oB+X6iQeAnHXSzj5Qz/IeDaQ==",
"peer": true
},
"object-inspect": {
......
......@@ -47,12 +47,12 @@
"testEnvironment": "node"
},
"dependencies": {
"koishi-thirdeye": "^10.2.8",
"koishi-thirdeye": "^10.3.1",
"moment": "^2.29.3"
},
"peerDependencies": {
"koishi": "^4.7.4",
"koishi-plugin-pics": "^9.3.3"
"koishi": "^4.7.5",
"koishi-plugin-pics": "^9.4.1"
},
"devDependencies": {
"@koishijs/plugin-cache-lru": "^1.0.0-rc.0",
......@@ -67,9 +67,9 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^3.4.1",
"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-lolicon": "^9.2.0",
"koishi-plugin-picsource-lolicon": "^9.2.3",
"koishi-plugin-picsource-miraikoi": "^1.0.2",
"koishi-plugin-picsource-yande": "^2.0.3",
"prettier": "^2.6.2",
......
......@@ -5,8 +5,9 @@ import {
PutOption,
SchemaOptions,
PutSession,
Selection,
} from 'koishi-thirdeye';
import { Adapter, Bot, Random, Selection, Session } from 'koishi';
import { Adapter, Bot, Random, Session } from 'koishi';
import path from 'path';
import * as fs from 'fs';
import moment from 'moment';
......
......@@ -14,6 +14,7 @@ import {
UseMiddleware,
OnPrivate,
PutBot,
selectContext,
} from 'koishi-thirdeye';
import { Adapter, Bot, Logger, Next, Session } from 'koishi';
import type PicsContainer from 'koishi-plugin-pics';
......@@ -77,7 +78,7 @@ export default class EdgingPlugin
implements LifecycleEvents
{
onApply() {
this.ctx.select(this.config.panelSelection).plugin(EdgingPanel);
selectContext(this.ctx, this.config.panelSelection).plugin(EdgingPanel);
dynamicInterval(
this.ctx,
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