Commit 26a74831 authored by nanahira's avatar nanahira

bump

parent 52c2b9e1
......@@ -13,10 +13,11 @@ const app = new Context({
});
// Console and sandbox
app.plugin(SandboxPlugin);
// app.plugin(SandboxPlugin);
app.plugin(ConsolePlugin, {
open: false,
});
app.plugin(SandboxPlugin);
// Some services
app.plugin(CachePlugin);
......
This diff is collapsed.
......@@ -30,15 +30,15 @@
"dependencies": {
"crypto-random-string": "^3.3.1",
"ip": "^1.1.5",
"koishi-thirdeye": "^11.0.12",
"koishi-thirdeye": "^11.1.0",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"tesseract.js": "^2.1.5"
},
"devDependencies": {
"@koishijs/plugin-console": "^4.1.1",
"@koishijs/plugin-database-memory": "^1.4.1",
"@koishijs/plugin-sandbox": "^2.0.1",
"@koishijs/plugin-console": "^4.5.4",
"@koishijs/plugin-database-memory": "^1.5.0",
"@koishijs/plugin-sandbox": "^2.2.9",
"@types/ip": "^1.1.0",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.177",
......@@ -61,7 +61,7 @@
"ws": "^8.3.0"
},
"peerDependencies": {
"koishi": "^4.8.7",
"koishi": "^4.9.1",
"koishi-plugin-cache-aragami": "^2.1.0"
},
"jest": {
......
......@@ -74,8 +74,8 @@ export default class HisoutensokuJammerPlugin extends StarterPlugin(
return this.handleMessage(textMessage, sender);
}
const imageMessageUrls = segmentChain
.filter((segment) => segment.type === 'image' && segment.data?.url)
.map((segment) => segment.data.url);
.filter((segment) => segment.type === 'image' && segment.attrs?.url)
.map((segment) => segment.attrs.url);
return Promise.all([
this.handleMessage(textMessage, sender),
this.workForOcr(imageMessageUrls, sender),
......
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