mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
feat:添加60s功能
This commit is contained in:
parent
4cd4d3e538
commit
748c5f76b6
23
apps/60s.js
Normal file
23
apps/60s.js
Normal 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
3
config/60s.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"url": "https://60s.crystelf.top"
|
||||
}
|
||||
@ -9,16 +9,9 @@
|
||||
"checkChat": {
|
||||
"rdNum": 2,
|
||||
"masterReply": true,
|
||||
"userId": [
|
||||
114514
|
||||
],
|
||||
"blackGroups": [
|
||||
114,
|
||||
514
|
||||
],
|
||||
"enableGroups": [
|
||||
11115
|
||||
]
|
||||
"userId": [],
|
||||
"blackGroups": [],
|
||||
"enableGroups": []
|
||||
},
|
||||
"maxMessageLength": 100
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"coreUrl": "",
|
||||
"coreUrl": "https://core.crystelf.top",
|
||||
"token": ""
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user