node-karin 0.10.1 → 0.10.2

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.
@@ -156,7 +156,7 @@ export class EventBaseHandler {
156
156
  request.message_id = Res.message_id || '';
157
157
  request.message_time = Res.message_time || Date.now();
158
158
  request.raw_data = Res.raw_data || undefined;
159
- logger.bot('debug', this.e.self_id, `回复消息结果:${JSON.stringify(result)}`);
159
+ logger.bot('debug', this.e.self_id, `回复消息结果:${JSON.stringify(request)}`);
160
160
  }
161
161
  catch (error) {
162
162
  logger.bot('error', this.e.self_id, `回复消息失败:${ReplyLog}`);
@@ -231,8 +231,8 @@ export const config = new (class Cfg {
231
231
  if (res) {
232
232
  const cfg = { ...res.defCfg.default, ...res.Config.default };
233
233
  for (const k of keys) {
234
- if (res[k])
235
- return { ...cfg, ...res[k] };
234
+ if (res.config[k])
235
+ return { ...cfg, ...res.config[k] };
236
236
  }
237
237
  return cfg;
238
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "private": false,
5
5
  "description": "基于 Kritor 进行开发的nodejs机器人框架",
6
6
  "homepage": "https://github.com/KarinJS/Karin",