This repository was archived by the owner on Jul 12, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.template.js
More file actions
56 lines (52 loc) · 2.32 KB
/
config.template.js
File metadata and controls
56 lines (52 loc) · 2.32 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
/* eslint-disable @typescript-eslint/no-unused-vars */
/** DETAILED CONFIG TYPINGS CAN BE FOUND IN src/types/config.ts! */
module.exports = {
bot: {
token: 'TOKEN', // discord token
mode: 'regular', // either "dev", "beta" or "regular". the latter is default.
clientId: '123456789' // discord client id
},
mode: {
name: 'single', // "single" = no sharding, "shard" = sharding, "worker" = auto-sharding
master: { }, // [only if name = "discovery"] dictates the master node to assign this worker node. see type file for more info
shardId: process.env.SHARD_IDS || [ 0 ], // [only if name = "shard"] this shard id
shardCount: process.env.SHARD_COUNT || 1 // [only if name = "shard"] total shard count
},
mongoDB: {
url: 'URL', // url (including auth) to your mongodb database
dbName: 'freestuff' // name of the database used by the bot
},
apiSettings: {
key: 'loremipsumyourapitokenherehaveagreatday', // freestuff api key
webhookSecret: 'mysecretsecret' // optional. webhook secret, can be removed if not using the webhook (or you don't want to use a secret (which you totally should))
},
server: { // optional. if you want to start a server for either freestuff api webhooks or prometheus metrics
enable: true, // enable the server
port: 6622, // pick a port you like
endpoints: {
apiWebhook: true, // enables the endpoint to receive api events. Can also pass a string instead of true to override the endpoint url
metrics: true // enables the endpoint for prometheus metrics. Can also pass a string instead of true to override the endpoint url
// metrics: '/super-secret-endpoint-name' // example for overriding the endpoint name
}
},
// EVERYTHING BELOW IS OPTIONAL AND CAN BE REMOVED
redis: {
// redis settings. can be left empty. https://www.npmjs.com/package/redis#options-object-properties
},
thirdParty: {
sentry: {
dsn: 'URL' // sentry dsn. can be found in sentry dashboard
}
},
/**
* A discord channel webhook,
* where debug messages are sent to whenever someone uses the "@freestuff here" command
*/
supportWebhook: {
id: '123456789123456789', // "@freestuff here" webhook.
token: 'abcdefghijklmnopqrstuvwxyz' // see above
},
admins: [
'137258778092503042' // list of users allowed to use admin commands
]
}