onebots 0.1.7 → 0.1.8

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.
@@ -556,8 +556,15 @@ class V12 extends events_1.EventEmitter {
556
556
  }));
557
557
  }
558
558
  });
559
- this.dispatch(V12.formatPayload(this.oneBot.uin, "connect", this.action.getVersion.apply(this)));
560
- this.dispatch(V12.formatPayload(this.oneBot.uin, "status_update", this.action.getStatus.apply(this)));
559
+ this.dispatch(V12.formatPayload(this.oneBot.uin, "connect", {
560
+ detail_type: "connect",
561
+ type: 'meta',
562
+ version: this.action.getVersion.apply(this)
563
+ }));
564
+ this.dispatch(V12.formatPayload(this.oneBot.uin, "status_update", {
565
+ detail_type: 'status_update',
566
+ status: this.action.getStatus.apply(this)
567
+ }));
561
568
  }
562
569
  }
563
570
  exports.V12 = V12;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onebots",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "基于icqq的多例oneBot实现",
5
5
  "engines": {
6
6
  "node": ">=16"