koishi-plugin-resonance-columba-bot 2.0.0 → 2.0.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,6 +156,9 @@ export declare var role_resonanceskills: {
156
156
  乌刹娜: {
157
157
  resonance: number;
158
158
  };
159
+ 涟: {
160
+ resonance: number;
161
+ };
159
162
  };
160
163
  export declare var ROLE_RESONANCE_SKILLS: {
161
164
  [role: string]: ResonanceSkills;
package/lib/index.js CHANGED
@@ -702,6 +702,9 @@ var role_resonanceskills = {
702
702
  },
703
703
  乌刹娜: {
704
704
  resonance: 5
705
+ },
706
+ 涟: {
707
+ resonance: 5
705
708
  }
706
709
  };
707
710
  var ROLE_RESONANCE_SKILLS = import_columbabuild3.RESONANCE_SKILLS;
@@ -1154,11 +1157,13 @@ var https = require("https");
1154
1157
  var vm = require("vm");
1155
1158
  async function updata_columba_data(ctx, startUrl = "", flag = false) {
1156
1159
  const result = await ctx.http("https://unpkg.com/resonance-data-columba/dist/columbabuild.js", { redirect: "manual" });
1160
+ console.log(result.headers.get("location"));
1157
1161
  if (errorNum != 0) {
1158
1162
  var loca = result.headers.get("location");
1159
1163
  let locaNum = loca.match(/\d+(\.\d+)?/g);
1160
1164
  let num = Number(locaNum[1]) - errorNum;
1161
1165
  loca = loca.replace(locaNum[1], String(num));
1166
+ console.log(loca);
1162
1167
  var url = "https://unpkg.com" + loca;
1163
1168
  console.log("尝试使用旧版本数据源 版本号 " + locaNum[0] + "." + num);
1164
1169
  send_error("尝试使用旧版本数据源 版本号 " + locaNum[0] + "." + num);
@@ -1168,6 +1173,7 @@ async function updata_columba_data(ctx, startUrl = "", flag = false) {
1168
1173
  if (startUrl != "" && startUrl != void 0) {
1169
1174
  url = startUrl;
1170
1175
  }
1176
+ console.log(url);
1171
1177
  try {
1172
1178
  https.get(url, (res) => {
1173
1179
  let data = "";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-resonance-columba-bot",
3
3
  "description": "雷索纳斯综合功能插件-娃娃鱼报社版",
4
- "version": "2.0.0",
4
+ "version": "2.0.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [