-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathexample_config.js
232 lines (214 loc) · 7.04 KB
/
example_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
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
const { GatewayIntentBits, Partials, ApplicationCommandOptionType } = require("discord.js");
const config = {
// The Discord ID for the bot owner (Gets max perms/ can use Dev commands)
ownerid: "",
// Default server to deploy dev / guild_only commands to
dev_server: null,
// The bot's token. Get it from https://discordapp.com/developers/applications/me
token: "",
// The number of shards to spawn with
shardCount: 1,
// Enable the various intents that are needed
botIntents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
],
// Partials your bot may need should go here, CHANNEL is required for DM's
partials: [Partials.Channel],
// Let it register global commands or not
enableGlobalCmds: true,
// Unit locations google sheet links
locations: {
char: "",
ship: "",
},
// Mongo DB, url for login & db name in mongo
mongodb: {
url: "",
swapidb: "",
},
// The event manager's port
eventServe: {
port: 0,
},
// Default guild config settings, leave these as-is
typedDefaultSettings: {
// Settings in a way that the bot can parse em out into slash command args
//
// Removed the prefix now that it should all be slash commands
//
adminRole: {
value: ["Administrator"],
type: ApplicationCommandOptionType.Role,
isArray: true,
description: "A list of the roles that are allowed to mess with settings/ events.",
},
enableWelcome: {
value: false,
type: ApplicationCommandOptionType.Boolean,
description: "Toggle the welcome message",
},
welcomeMessage: {
value: "Say hello to {{user}}, everyone! We all need a warm welcome sometimes :D",
type: ApplicationCommandOptionType.String,
description: "Set the welcome message text",
},
enablePart: {
value: false,
type: ApplicationCommandOptionType.Boolean,
description: "Toggle the parting/ leaving message",
},
partMessage: {
value: "Goodbye {{user}}, thanks for stopping by!",
type: ApplicationCommandOptionType.String,
description: "Set the part message text",
},
timezone: {
value: "America/Los_Angeles",
type: ApplicationCommandOptionType.String,
description: "Set the timezone to be referenced for events and such in the guild",
},
announceChan: {
value: "",
type: ApplicationCommandOptionType.Channel,
description: "Set the default channel for events to announce to",
},
useEventPages: {
value: false,
type: ApplicationCommandOptionType.Boolean,
description: "Set it to show your events list in pages",
},
eventCountdown: {
value: [2880, 1440, 720, 360, 180, 120, 60, 30, 10, 5],
type: ApplicationCommandOptionType.Integer,
isArray: true,
description: "Set how long before events is should warn you.",
},
language: {
value: "en_US",
type: ApplicationCommandOptionType.String,
description: "Change the language (Limited options outside of English)",
choices: ["en_US", "de_DE", "es_SP", "ko_KR", "pt_BR"],
},
swgohLanguage: {
value: "ENG_US",
type: ApplicationCommandOptionType.String,
choices: [
"ENG_US",
"GER_DE",
"SPA_XM",
"FRE_FR",
"RUS_RU",
"POR_BR",
"KOR_KR",
"ITA_IT",
"TUR_TR",
"CHS_CN",
"CHT_CN",
"IND_ID",
"JPN_JP",
"THA_TH",
],
description: "Change the language of the data from in-game",
},
shardtimeVertical: {
value: false,
type: ApplicationCommandOptionType.Boolean,
description: "Display the shardtimes info vertically",
},
},
// The default per-guild settings
defaultSettings: {
adminRole: ["Administrator"],
enableWelcome: false,
welcomeMessage: "Say hello to {{user}}, everyone! We all need a warm welcome sometimes :D",
enablePart: false,
partMessage: "Goodbye {{user}}, thanks for stopping by!",
useEmbeds: true,
timezone: "America/Los_Angeles",
announceChan: "",
useEventPages: false,
eventCountdown: [2880, 1440, 720, 360, 180, 120, 60, 30, 10, 5],
language: "en_US",
swgohLanguage: "ENG_US",
shardtimeVertical: false,
},
// Default config for users (Leave these blank)
defaultUserConf: {
// Discord userID
id: "",
// Array of allycode/ primary status pairs
accounts: [],
// Settings for the arena alerts
arenaAlert: {
enableRankDMs: false,
arena: "none", // both, char, fleet
payoutWarning: 0, // If higher than 0, send someone a DM that their payout is in x min
enablePayoutResult: false,
},
lang: {
language: null,
swgohLanguage: null,
},
},
// The webhook URL to send the logs to
webhookURL: "",
debugLogs: false,
// If you want to send error/ create/ delete message to a log channel
logs: {
logToChannel: false,
channel: "",
logComs: false,
},
// If it should use the premium client
premium: false,
// The premium IP/ port for it to use (localhost if local, external IP/port if not)
// premiumIP_Port: "http://localhost:PORT",
// The IP/ Port for the bot to use for the image server if available
imageServIP_Port: "http://localhost:PORT",
// Some VIPs that can use patreon perks, put their Discord IDs in the array
patrons: [],
// Need a Patreon account for this
// patreon: {
// clientID: "",
// clientSecret: "",
// creatorAccessToken: "",
// creatorRefreshToken: ""
// },
// Default counts for arenawatch accounts per-tier
arenaWatchConfig: {
tier1: 1,
tier2: 20,
tier3: 50,
},
// SWGoH.help config
swapiConfig: {
username: "",
password: "",
client_id: "",
client_secret: "YOUR_SECRET",
host: "api.swgoh.help",
},
// Alternative source
fakeSwapiConfig: {
enabled: false,
options: {
username: "",
password: "",
host: "",
port: "",
protocol: "",
},
statCalc: {
url: "",
},
clientStub: {
url: "",
accessKey: "",
secretKey: "",
},
},
};
module.exports = config;