-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.js
42 lines (34 loc) · 1.47 KB
/
config.js
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
var config = module.exports = {};
config.disqus = {};
config.slack = {};
// Number of seconds between each check (optional, default 60).
config.interval = process.env.SLACKUS_INTERVAL;
// The number of recent comments to check (optional, default 25, max 100).
config.disqus.limit = process.env.SLACKUS_DISQUS_LIMIT;
// Disqus forum to check, specified by its shortname (required).
// To check multiple forums, enter their shortnames separated by comma.
config.disqus.forums = process.env.SLACKUS_DISQUS_FORUM;
// Disqus authentication (required).
config.disqus.authentication = {
api_secret: process.env.SLACKUS_DISQUS_API_SECRET,
api_key: process.env.SLACKUS_DISQUS_API_KEY,
access_token: process.env.SLACKUS_DISQUS_ACCESS_TOKEN,
};
// URL of your Slack Incoming WebHook (required).
config.slack.webhook = process.env.SLACKUS_SLACK_WEBHOOK;
// Users to mention in Slack channel when notification arrives, comma separated.
config.slack.mention = process.env.SLACKUS_SLACK_MENTION;
// Additional options for messages posted to Slack (optional).
// Overrides the webhook's settings, see Setup Instructions for your webhook.
config.slack.options = {
// Some examples:
// username: 'Santa Claus',
// icon_emoji: ':santa:',
// icon_url: 'http://northpole.com/santa.jpg',
// channel: '#workshop',
// channel: '@helper',
// attachments: [ ... ],
};
// Additional options for API requests to Disqus (optional).
// See https://disqus.com/api/docs/posts/list/.
config.disqus.options = {};