-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservice.example.js
36 lines (36 loc) · 1.22 KB
/
service.example.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
const path = require("path");
module.exports = [
{
enabled: true,
name: "twitter",
indexPath: path.join(__dirname, "services/twitter/index.js"),
options: {
// 0. Visit https://developer.twitter.com/en/portal/dashboard
// 1. Create App(development App) with read and write permission
// 2. Generate Consumer Key and Secret
// 3. Generate Access Token and Secret
// 4. Fill the following fields
// Consumer Keys
appKey: "app key",
appSecret: "app secret",
// Authentication Tokens(Access Token and Secret).
// Warning: Not Bearer Token
// Post Tweets that requires access token and secret
accessToken: "access token",
accessSecret: "access token secret"
}
},
{
enabled: true,
isDefaultChecked: true,
name: "hatebu",
indexPath: path.join(__dirname, "services/hatebu/index.js")
},
// Last service is special
// Assign shortcut as Cmd + 0
{
enabled: process.env.NODE_ENV === "development",
name: "debug",
indexPath: path.join(__dirname, "services/debug/index.js")
}
];