-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.js
More file actions
66 lines (63 loc) · 1.31 KB
/
Copy pathconfig.example.js
File metadata and controls
66 lines (63 loc) · 1.31 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
57
58
59
60
61
62
63
64
65
66
const safename = require('safename'),
cheerio = require('cheerio'),
def_message = item => {
let msg = ''
if ( item.categories ) {
item.categories.forEach(cat => {
if ( msg.length ) msg += ' '
msg += '#' + safename(cat.toLowerCase())
})
}
return msg
},
def_id = (item, hash) => hash(item.link),
def_exists = (state, id) => state == id,
def_save_state = (state, id) => id
module.exports = {
"interval": 5 * 60 * 1000, // In milliseconds
"credentials": {
"username": "",
"password": ""
},
"modules": {
"meta": "./meta",
"ogs": "./ogs"
},
"def_article": {
"access_id": 2,
"attachment_guid": null,
"description": null,
"is_rich": 0,
"mature": 0,
"message": null,
"thumbnail": null,
"title": null,
"url": null,
"wire_threshold": null
},
"feeds": [
{
"name": "BBC News - US & Canada",
"uri": "https://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml",
"container": "569573984593522688",
// https://www.minds.com/groups/profile/569573984593522688
"id": def_id,
"const": {
"mature": 0
},
"map": {
"title": "title",
"description": "content",
"url": "link",
"message": def_message
},
// Module references:
"meta": {
"thumbnail": "image"
},
"ogs": {},
"exists": def_exists,
"save_state": def_save_state
}
]
}