-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.ts
188 lines (170 loc) · 4.09 KB
/
config.ts
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
import dotenv from "dotenv";
dotenv.config();
export const {
DATABASE_URL,
SSL,
REDIS_URL,
token,
clientId,
castleDkpTokenRO,
castleDkp2TokenRW,
castleDkpAuctionRaidId,
castleDkpBonusesCharId,
sharedCharactersGoogleSheetId,
publicCharactersGoogleSheetId,
commandSuffix,
guildId,
guardRoleId,
dkpDeputyRoleId,
officerRoleId,
jewelerRoleId,
bankerRoleId,
raiderRoleId,
inactiveRaiderRoleId,
knightRoleId,
trackerRoleId,
reinforcementsRoleId,
castleRoleId,
membersAndAlliesRoleId,
competitorRoleId,
ancientBloodRoleId,
freyasChariotRoleId,
blackLotusRoleId,
akatsukiRoleId,
raidScheduleChannelId,
auctionChannelId,
bankRequestsChannelId,
jewelryChannelId,
rolesChannelId,
raiderEnlistmentChannelId,
gatehouseChannelId,
removedChannelId,
inviteListChannelId,
dkpRecordsChannelId,
dkpBonusesChannelId,
applicationsChannelId,
officerVotesChannelId,
requestDumpThreadId,
startedRaidsDumpThreadId,
raiderEnlistedThreadId,
bankInventoryChannelId,
bankTransactionsChannelId,
bankOfficeChannelId,
guardOfficeChannelId,
raidBotsChannelId,
GOOGLE_CLIENT_EMAIL,
GOOGLE_PRIVATE_KEY,
GOOGLE_KEY_FILE,
bankGoogleDriveFolderId,
modRoleId,
batphoneChannelId,
wakeupChannelId,
botEmbedChannelId,
} = process.env as {
/**
* [Optional] PostgreSQL DB connection URL. Defaults to gitpod development DB.
*/
DATABASE_URL?: string;
/**
* [Optional] Whether or not the server supports SSL connections. If unset, SSL is used. The development server sets it automatically.
*/
SSL?: "false";
/**
* [Optional] Redis connection URL. Defaults to gitpod development instance.
*/
REDIS_URL?: string;
/**
* Discord bot OAuth2 token.
*/
token: string;
/**
* Discord bot OAuth2 client ID.
*/
clientId: string;
/**
* CastleDKP.com admin read-only access token.
*/
castleDkpTokenRO?: string;
/**
* castledkp.vercel.app read/write token
*/
castleDkp2TokenRW?: string;
/**
* CastleDKP.com Raid ID for DKP auctions.
*/
castleDkpAuctionRaidId?: string;
/**
* CastleDKP.com DKP Bonuses character ID.
*/
castleDkpBonusesCharId?: string;
/**
* ID of Google Spreadsheet with shared character details.
*
* Expected columns by index are defined in TODO
*/
sharedCharactersGoogleSheetId?: string;
/*
* Publically accessible bot info sheet
*/
publicCharactersGoogleSheetId?: string;
/**
* [Optional] Custom suffix for all Discord commands. Useful for running multiple instances of the bot in the same server simultaneously.
*/
commandSuffix?: string;
/**
* Discord server ID.
*/
guildId: string;
// Volunteer role IDs
guardRoleId: string;
dkpDeputyRoleId: string;
officerRoleId: string;
jewelerRoleId: string;
bankerRoleId: string;
knightRoleId: string;
modRoleId: string;
trackerRoleId: string;
// Raider role IDs
raiderRoleId: string;
inactiveRaiderRoleId: string;
reinforcementsRoleId: string;
// Guild role IDs
membersAndAlliesRoleId: string;
castleRoleId: string;
competitorRoleId: string;
ancientBloodRoleId: string;
freyasChariotRoleId: string;
blackLotusRoleId: string;
akatsukiRoleId: string;
// Channel IDs
raidScheduleChannelId: string;
auctionChannelId: string;
bankRequestsChannelId: string;
jewelryChannelId: string;
rolesChannelId: string;
raiderEnlistmentChannelId: string;
gatehouseChannelId: string;
removedChannelId: string;
inviteListChannelId: string;
dkpRecordsChannelId: string;
dkpBonusesChannelId: string;
applicationsChannelId: string;
officerVotesChannelId: string;
requestDumpThreadId: string;
startedRaidsDumpThreadId: string;
raiderEnlistedThreadId: string;
bankInventoryChannelId: string;
bankTransactionsChannelId: string;
bankOfficeChannelId: string;
guardOfficeChannelId: string;
raidBotsChannelId: string;
batphoneChannelId: string;
wakeupChannelId: string;
botEmbedChannelId: string;
// Google Ids
bankGoogleDriveFolderId: string;
// Google Auth
GOOGLE_CLIENT_EMAIL: string;
GOOGLE_PRIVATE_KEY: string;
GOOGLE_KEY_FILE: string;
};