-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguoba.support.js
More file actions
executable file
·56 lines (55 loc) · 1.53 KB
/
guoba.support.js
File metadata and controls
executable file
·56 lines (55 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import Cfg from './model/Cfg.js'
export function supportGuoba() {
return {
pluginInfo: {
name: 'bililivePush-plugin',
title: 'bililivePush-plugin',
author: '@天如',
authorLink: 'https://gitee.com/HDTianRu',
link: 'https://gitee.com/HDTianRu/bililivePush-plugin',
isV3: true,
isV2: false,
description: '当然是推送b站直播啦',
icon: 'mdi:stove',
iconColor: '#6bb9dd',
},
configInfo: {
schemas: [{
field: 'user.sleep',
label: '群发间隔',
bottomHelpMessage: '推送给多个群时间隔的时间(单位秒)',
component: "InputNumber",
componentProps: {
placeholder: "请输入间隔时间"
}
}, {
field: 'user.endPush',
label: '下播推送',
bottomHelpMessage: '是否推送下播信息',
component: "Switch"
}, {
field: 'user.forward',
label: '使用转发推送',
bottomHelpMessage: '使用合并转发推送消息',
component: "Switch"
}, {
field: 'rePush',
label: '改标题二次推送',
bottomHelpMessage: '当直播间标题被更改时,再次推送一遍',
component: "Switch"
}],
getConfigData() {
return Cfg.getAll()
},
setConfigData(data, {
Result
}) {
for (let [keyPath, value] of Object.entries(data)) {
Cfg._set(keyPath, value)
}
Cfg.save()
return Result.ok({}, '保存成功~')
},
},
}
}