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 CHANGED
@@ -34,6 +34,7 @@ export interface Config {
34
34
  baAPI: string[];
35
35
  slTest: CenterServerConfig[];
36
36
  steamAPI: string;
37
+ newsAPI: string;
37
38
  memesAPI: Dict<string>;
38
39
  catAPI: string;
39
40
  qqAPI: string;
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("http://127.0.0.1:8080/tasa/index.old/v.json", {}, ctx.config.timeout, log);
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.3";
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({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-node-async-bot-all",
3
3
  "description": "NodeAsync Bot插件(自用)",
4
- "version": "2.24.3",
4
+ "version": "2.24.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "contributors": [