Commit 0967c2d2 authored by nanahira's avatar nanahira

bump

parent 1bb46983
...@@ -13,10 +13,11 @@ const app = new Context({ ...@@ -13,10 +13,11 @@ const app = new Context({
}); });
// Console and sandbox // Console and sandbox
app.plugin(SandboxPlugin); // app.plugin(SandboxPlugin);
app.plugin(ConsolePlugin, { app.plugin(ConsolePlugin, {
open: false, open: false,
}); });
app.plugin(SandboxPlugin);
// Some services // Some services
app.plugin(CachePlugin); app.plugin(CachePlugin);
......
This diff is collapsed.
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
}, },
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-order-picker", "homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-order-picker",
"dependencies": { "dependencies": {
"koishi-thirdeye": "^11.0.12" "koishi-thirdeye": "^11.1.0"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-console": "^4.1.1", "@koishijs/plugin-console": "^4.5.4",
"@koishijs/plugin-database-memory": "^1.4.1", "@koishijs/plugin-database-memory": "^1.5.0",
"@koishijs/plugin-sandbox": "^2.0.1", "@koishijs/plugin-sandbox": "^2.2.9",
"@types/jest": "^27.4.0", "@types/jest": "^27.4.0",
"@types/node": "^17.0.2", "@types/node": "^17.0.2",
"@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/eslint-plugin": "^4.33.0",
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
"ws": "^8.4.0" "ws": "^8.4.0"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.8.7", "koishi": "^4.9.1",
"koishi-plugin-cache-aragami": "^2.1.0" "koishi-plugin-cache-aragami": "^2.1.0"
}, },
"jest": { "jest": {
......
...@@ -44,7 +44,7 @@ export class OrderPickerConfig { ...@@ -44,7 +44,7 @@ export class OrderPickerConfig {
if (!session.userId || !this.publishers.includes(session.userId)) { if (!session.userId || !this.publishers.includes(session.userId)) {
return false; return false;
} }
const segments = segment.parse(session.content); const segments = session.elements;
if (!segments.find((s) => s.type === 'at' && s.data.type === 'all')) { if (!segments.find((s) => s.type === 'at' && s.data.type === 'all')) {
return false; return false;
} }
......
...@@ -24,7 +24,7 @@ function plainText(text: string) { ...@@ -24,7 +24,7 @@ function plainText(text: string) {
return segment return segment
.parse(text) .parse(text)
.filter((s) => s.type === 'text') .filter((s) => s.type === 'text')
.map((s) => s.data.content) .map((s) => s.attrs.content)
.join('') .join('')
.trim(); .trim();
} }
......
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