woodenfish-bot 2.8.2 → 2.8.3

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.
package/es/index.js CHANGED
@@ -716,7 +716,7 @@ try {
716
716
 
717
717
  var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
718
718
 
719
- var version = "2.8.2";
719
+ var version = "2.8.3";
720
720
 
721
721
  var loglevel = {exports: {}};
722
722
 
@@ -1196,9 +1196,6 @@ var addAuthorization = /*#__PURE__*/function () {
1196
1196
  if (access_token_json.hasOwnProperty('bot') && access_token_json['bot'].hasOwnProperty(appID)) {
1197
1197
  access_token = access_token_json['bot'][appID]['access_token'];
1198
1198
  expires_in = parseInt(access_token_json['bot'][appID]['expires_in']);
1199
- } else {
1200
- // 不存在appID时的处理逻辑
1201
- fs.writeFileSync(access_token_file, JSON.stringify(default_token_json, null, 2), 'utf-8');
1202
1199
  }
1203
1200
  } else {
1204
1201
  // 执行文件不存在时的处理逻辑
package/lib/index.js CHANGED
@@ -718,7 +718,7 @@ try {
718
718
 
719
719
  var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
720
720
 
721
- var version = "2.8.2";
721
+ var version = "2.8.3";
722
722
 
723
723
  var loglevel = {exports: {}};
724
724
 
@@ -1198,9 +1198,6 @@ var addAuthorization = /*#__PURE__*/function () {
1198
1198
  if (access_token_json.hasOwnProperty('bot') && access_token_json['bot'].hasOwnProperty(appID)) {
1199
1199
  access_token = access_token_json['bot'][appID]['access_token'];
1200
1200
  expires_in = parseInt(access_token_json['bot'][appID]['expires_in']);
1201
- } else {
1202
- // 不存在appID时的处理逻辑
1203
- fs.writeFileSync(access_token_file, JSON.stringify(default_token_json, null, 2), 'utf-8');
1204
1201
  }
1205
1202
  } else {
1206
1203
  // 执行文件不存在时的处理逻辑
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woodenfish-bot",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "woodenfish-bot",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"