koishi-plugin-teach
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -34,3 +34,3 @@ "use strict"; | ||
.replace(/\$m/g, koishi_utils_1.CQCode.stringify('at', { qq: meta.selfId })) | ||
.replace(/\$s/g, escapeAnswer(name === String(meta.userId) ? meta.sender.card || meta.sender.nickname : name)) | ||
.replace(/\$s/g, escapeAnswer(name === String(meta.userId) && meta.sender ? meta.sender.card || meta.sender.nickname : name)) | ||
.replace(/\$0/g, escapeAnswer(meta.message)) | ||
@@ -37,0 +37,0 @@ .split('$n') |
{ | ||
"name": "koishi-plugin-teach", | ||
"description": "Teach plugin for Koishi", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "dist/index.js", | ||
@@ -34,10 +34,10 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"koishi-database-level": "^1.0.0-alpha.6", | ||
"koishi-database-mysql": "^1.0.0-alpha.6" | ||
"koishi-database-level": "^1.0.0-alpha.7", | ||
"koishi-database-mysql": "^1.0.0-alpha.7" | ||
}, | ||
"dependencies": { | ||
"fast-deep-equal": "^3.1.1", | ||
"koishi-core": "^1.0.0-alpha.6", | ||
"koishi-utils": "^1.0.0-alpha.2" | ||
"koishi-core": "^1.0.0-alpha.7", | ||
"koishi-utils": "^1.0.0-alpha.3" | ||
} | ||
} |
@@ -37,3 +37,3 @@ import { updateActivity, Context } from 'koishi-core' | ||
.replace(/\$m/g, CQCode.stringify('at', { qq: meta.selfId })) | ||
.replace(/\$s/g, escapeAnswer(name === String(meta.userId) ? meta.sender.card || meta.sender.nickname : name)) | ||
.replace(/\$s/g, escapeAnswer(name === String(meta.userId) && meta.sender ? meta.sender.card || meta.sender.nickname : name)) | ||
.replace(/\$0/g, escapeAnswer(meta.message)) | ||
@@ -40,0 +40,0 @@ .split('$n') |
Sorry, the diff of this file is not supported yet
209297
Updatedkoishi-core@^1.0.0-alpha.7
Updatedkoishi-utils@^1.0.0-alpha.3