This repository was archived by the owner on Mar 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.example.js
More file actions
165 lines (146 loc) · 4.39 KB
/
config.example.js
File metadata and controls
165 lines (146 loc) · 4.39 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/**
* Copyright (C) 2020 tt.bot dev team
*
* This file is part of tt.bot.
*
* tt.bot is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* tt.bot is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with tt.bot. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
const RethinkDBProvider = require("./lib/db-providers/RethinkDBProvider");
module.exports = {
/**
* Your bot token
* @type {string}
*/
token: "(Bot) AAAAAAAAAAAAAAAAAAaaaaaaaaaa.g3gf35gf3df3",
/**
* Owners of the bot
* @type {string|string[]}
*/
ownerID: "123456789012345678",
/**
* A key to post to https://discord.bots.gg. This is optional.
* @type {string}
*/
botsGGKey: "Heekajkga.s,gkjaůsgkiosdhgirf6g5f655d6d5s9s58s98",
/**
* A key to post to https://top.gg. This is also optional.
* @type {string}
*/
topGGKey: "/tbalealelalajioe,e.gokaoklelgoekejfoekeoeke",
/**
* Bot's default prefix.
* @type {string}
*/
prefix: "AAAAAAAaa",
/**
* IP address to host the webserver on.
* @type {string}
*/
webserverip: "127.0.0.1",
/**
* Whether to serve static content or not
* THIS IS NOT RELIABLE IN PRODUCTION ENVIRONMENTS.
* If you'd like to serve static content through
* a different web server, point /static to webserver/static
* @type {boolean}
* @default false
*/
serveStatic: true,
/**
* Configures the website display URL.
* This can be a function taking a URL if you for example want to use
* alternative links.
* @type {string|function}
*/
webserverDisplay: "https://127.0.0.1:8826",
/**
* The port to host the webserver on. The default setting is 8090.
* @type {number}
*/
httpPort: 8826,
//httpsPort: 8820, // Uncomment this line to use HTTPS.
/**
* If httpsPort is present, these settings are used for HTTPS web server.
* @see https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
*/
httpsSettings: {
},
/**
* The client ID and client secret. These are obtainable from the page where you got the token.
* @type {string}
*/
clientID: "111111111111111111",
clientSecret: "9a9a99e89a8e92dg4df6s6s6",
/**
* The date formatting, for the nice display on Discord.
* @type {string}
*/
normalDateFormat: "D[.] M[.] YYYY [at] H:mm",
tzDateFormat: "D[.] M[.] YYYY [at] H:mm [(]Z[)]",
/**
* The database options for the bot
* If using the Docker image with the default RDB provider,
* set options.servers to [{ host: "db" }]
* @type {object}
*/
database: {
provider: RethinkDBProvider,
options: {
db: "ttalpha"
}
},
/**
* Connection options that can be passed to rethinkdbdash.
* @see https://github.com/neumino/rethinkdbdash#importing-the-driver
*/
connectionOpts: {
db: "ttalpha"
},
/**
* The channel ID of the server to log into
* @type {string}
*/
serverLogChannel: "236757363699220480",
/**
* A number of workers to spawn. These are used to scale the work without blocking the entire bot.
* @type {string}
*/
workerCount: 5,
/**
* The GitHub (personal) access token with `gist` permission.
*/
gistKey: "a6ge954rb0zzt29ub897jf9b81t77a67erfv9",
/**
* The initialization vector for encryption. You can either use your own 16 bytes or let the bot generate this.
* @type {string}
*/
encryptionIv: "",
/**
* The webhook details to post extension scope requests in
*/
extensionFlagRequest: {
/**
* The webhook ID
* @type {string}
*/
id: "1",
/**
* The webhook token
* @type {string}
*/
token: "nEsprAvedLiVo"
},
announcementChannelID: "123456789012345678"
};