koishi-plugin-node-async-bot-all 2.24.3 → 2.24.4
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/index.d.ts +1 -0
- package/lib/index.js +4 -3
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -854,7 +854,7 @@ async function getMsg(ctx, session) {
|
|
|
854
854
|
__name(getMsg, "getMsg");
|
|
855
855
|
async function getNewsMsg(ctx, type) {
|
|
856
856
|
const log = ctx.logger("getNewsMsg");
|
|
857
|
-
const response = await request(
|
|
857
|
+
const response = await request(ctx.config.newsAPI, {}, ctx.config.timeout, log);
|
|
858
858
|
if (response.success) {
|
|
859
859
|
if ((await ctx.database.get("botData", "newsId"))[0]?.data == response.data.appnews.newsitems[0].gid && type != 1) {
|
|
860
860
|
log.debug("无新闻");
|
|
@@ -907,7 +907,7 @@ async function getNewsMsg(ctx, type) {
|
|
|
907
907
|
__name(getNewsMsg, "getNewsMsg");
|
|
908
908
|
|
|
909
909
|
// package.json
|
|
910
|
-
var version = "2.24.
|
|
910
|
+
var version = "2.24.4";
|
|
911
911
|
|
|
912
912
|
// src/index.ts
|
|
913
913
|
var inject = ["database", "installer", "puppeteer", "cron"];
|
|
@@ -950,7 +950,8 @@ var Config = import_koishi3.Schema.intersect([
|
|
|
950
950
|
qqAPI: import_koishi3.Schema.string().default("https://uapis.cn/api/v1/social/qq/userinfo").description("获取 QQ 信息 API")
|
|
951
951
|
}).description("获取 QQ 信息"),
|
|
952
952
|
import_koishi3.Schema.object({
|
|
953
|
-
slNews: import_koishi3.Schema.array(String).default([""]).description("{platform}:{channelId}")
|
|
953
|
+
slNews: import_koishi3.Schema.array(String).default([""]).description("{platform}:{channelId}"),
|
|
954
|
+
newsAPI: import_koishi3.Schema.string().default("https://api.steampowered.com/ISteamNews/GetNewsForApp/v2/?appid=700330&count=1").description("新闻 API")
|
|
954
955
|
}).description("SL新闻列表"),
|
|
955
956
|
import_koishi3.Schema.object({
|
|
956
957
|
slTest: import_koishi3.Schema.array(import_koishi3.Schema.object({
|