feat:添加60s功能

This commit is contained in:
Jerry 2025-10-04 14:15:52 +08:00
parent 4cd4d3e538
commit 748c5f76b6
4 changed files with 30 additions and 11 deletions

23
apps/60s.js Normal file
View File

@ -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);
}
}

3
config/60s.json Normal file
View File

@ -0,0 +1,3 @@
{
"url": "https://60s.crystelf.top"
}

View File

@ -9,16 +9,9 @@
"checkChat": { "checkChat": {
"rdNum": 2, "rdNum": 2,
"masterReply": true, "masterReply": true,
"userId": [ "userId": [],
114514 "blackGroups": [],
], "enableGroups": []
"blackGroups": [
114,
514
],
"enableGroups": [
11115
]
}, },
"maxMessageLength": 100 "maxMessageLength": 100
} }

View File

@ -1,4 +1,4 @@
{ {
"coreUrl": "", "coreUrl": "https://core.crystelf.top",
"token": "" "token": ""
} }