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.
- package/lib/data/roleSkills.d.ts +3 -0
- package/lib/index.js +6 -0
- 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,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 = "";
|