koishi-plugin-resonance-columba-bot 2.0.1 → 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.
- package/lib/data/roleSkills.d.ts +3 -0
- package/lib/index.js +6 -1
- package/package.json +1 -1
package/lib/data/roleSkills.d.ts
CHANGED
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,6 +1157,7 @@ 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);
|
|
@@ -1164,11 +1168,12 @@ async function updata_columba_data(ctx, startUrl = "", flag = false) {
|
|
|
1164
1168
|
console.log("尝试使用旧版本数据源 版本号 " + locaNum[0] + "." + num);
|
|
1165
1169
|
send_error("尝试使用旧版本数据源 版本号 " + locaNum[0] + "." + num);
|
|
1166
1170
|
} else {
|
|
1167
|
-
var url = result.headers.get("location");
|
|
1171
|
+
var url = "https://unpkg.com" + result.headers.get("location");
|
|
1168
1172
|
}
|
|
1169
1173
|
if (startUrl != "" && startUrl != void 0) {
|
|
1170
1174
|
url = startUrl;
|
|
1171
1175
|
}
|
|
1176
|
+
console.log(url);
|
|
1172
1177
|
try {
|
|
1173
1178
|
https.get(url, (res) => {
|
|
1174
1179
|
let data = "";
|