koishi-plugin-18xx 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -218,12 +218,12 @@ async function server(ctx, config) {
218
218
  const { text = "" } = ptx.request.body || {};
219
219
  const result = MESSAGE_REGEX.exec(text);
220
220
  if (!result) {
221
- logger.error("Webhook格式错误");
221
+ logger.error("Webhook格式错误", text);
222
222
  return ptx.status = 400;
223
223
  }
224
224
  const [, webhookId, message] = result;
225
225
  if (!Number(webhookId) || !message) {
226
- logger.error("Webhook格式错误");
226
+ logger.error("Webhook格式错误", text);
227
227
  return ptx.status = 400;
228
228
  }
229
229
  const profiles = await ctx.database.get(name, { id: Number(webhookId) });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-18xx",
3
3
  "description": "18xxGames 机器人",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [