Commit 84cbf3f9 authored by nanahira's avatar nanahira

bump to Koishi 4.10.3

parent 218b231b
import { Context } from 'koishi'; import { Context } from 'koishi';
import TargetPlugin from '../src'; import TargetPlugin from '../src';
import ConsolePlugin from '@koishijs/plugin-console'; import ConsolePlugin from '@koishijs/plugin-console';
import SandboxPlugin from '@koishijs/plugin-sandbox'; import * as SandboxPlugin from '@koishijs/plugin-sandbox';
import DatabasePlugin from '@koishijs/plugin-database-memory'; import DatabasePlugin from '@koishijs/plugin-database-memory';
// import CachePlugin from '@koishijs/plugin-cache-lru'; // import CachePlugin from '@koishijs/plugin-cache-lru';
import ExtrasInDev from './extras'; import ExtrasInDev from './extras';
......
This diff is collapsed.
...@@ -31,14 +31,14 @@ ...@@ -31,14 +31,14 @@
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-dicex", "homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-dicex",
"dependencies": { "dependencies": {
"cosmotype-decorators": "^2.0.3", "cosmotype-decorators": "^2.0.3",
"koishi-thirdeye": "^11.1.11", "koishi-thirdeye": "^11.1.13",
"onedice": "^1.0.2" "onedice": "^1.0.2"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-console": "^4.5.4", "@koishijs/plugin-console": "^4.5.4",
"@koishijs/plugin-database-memory": "^1.5.0", "@koishijs/plugin-database-memory": "^2.0.0",
"@koishijs/plugin-dataview": "^2.0.0", "@koishijs/plugin-dataview": "^2.1.7",
"@koishijs/plugin-sandbox": "^2.2.9", "@koishijs/plugin-sandbox": "^2.3.5",
"@types/jest": "^29.2.0", "@types/jest": "^29.2.0",
"@types/node": "^17.0.4", "@types/node": "^17.0.4",
"@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/eslint-plugin": "^4.33.0",
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
"ws": "^8.4.0" "ws": "^8.4.0"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.9.7" "koishi": "^4.10.3"
}, },
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": [
......
...@@ -147,6 +147,9 @@ export class DbModule extends BaseModule implements LifecycleEvents { ...@@ -147,6 +147,9 @@ export class DbModule extends BaseModule implements LifecycleEvents {
channelId: session.channelId || 'priv', channelId: session.channelId || 'priv',
character: await this.getCurrentCharacter(session), character: await this.getCurrentCharacter(session),
}; };
if (!expr) {
return '语法错误。';
}
const exprChain = expr.split(/\s/); const exprChain = expr.split(/\s/);
const skillsSet = new Set<string>(); const skillsSet = new Set<string>();
const datas: Partial<DiceSkill>[] = []; const datas: Partial<DiceSkill>[] = [];
......
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