From 748c5f76b69089b4b20d8edc270fb1387ae077d7 Mon Sep 17 00:00:00 2001 From: Jerryplusy Date: Sat, 4 Oct 2025 14:15:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A060s=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/60s.js | 23 +++++++++++++++++++++++ config/60s.json | 3 +++ config/ai.json | 13 +++---------- config/coreConfig.json | 2 +- 4 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 apps/60s.js create mode 100644 config/60s.json diff --git a/apps/60s.js b/apps/60s.js new file mode 100644 index 0000000..28f0980 --- /dev/null +++ b/apps/60s.js @@ -0,0 +1,23 @@ +import ConfigControl from '../lib/config/configControl.js'; + +export default class SixSecond extends plugin { + constructor() { + super({ + name: '60s', + dsc: '60api,获取天下事', + event: 'message', + priority: -200, + rule: [ + { + reg: '^(#|/)?60s|(#|/)?早报$', + fnc: 'six', + }, + ], + }); + } + + async six(e) { + const url = `${ConfigControl.get('60s')?.url}/v2/60s?encoding=image`; + return e.reply(segment.image(url), true); + } +} diff --git a/config/60s.json b/config/60s.json new file mode 100644 index 0000000..f097cb0 --- /dev/null +++ b/config/60s.json @@ -0,0 +1,3 @@ +{ + "url": "https://60s.crystelf.top" +} \ No newline at end of file diff --git a/config/ai.json b/config/ai.json index 3fb6f59..f1f2d9c 100644 --- a/config/ai.json +++ b/config/ai.json @@ -9,16 +9,9 @@ "checkChat": { "rdNum": 2, "masterReply": true, - "userId": [ - 114514 - ], - "blackGroups": [ - 114, - 514 - ], - "enableGroups": [ - 11115 - ] + "userId": [], + "blackGroups": [], + "enableGroups": [] }, "maxMessageLength": 100 } diff --git a/config/coreConfig.json b/config/coreConfig.json index 70fce5b..336f732 100644 --- a/config/coreConfig.json +++ b/config/coreConfig.json @@ -1,4 +1,4 @@ { - "coreUrl": "", + "coreUrl": "https://core.crystelf.top", "token": "" }