feat: tokens and ids naming convention

This commit is contained in:
TresAbhi committed 2023-06-12 01:17:26 +00:00
1 parent 537d0c34ea
commit 4be7852bf3
17 files changed
+46 -46

No files matched your search

+4 -4
View File
@@ -1,9 +1,9 @@
export const discordToken = process.env.DISCORD_TOKEN!;
export const wargamingApplicationId = process.env.WARGAMING_APPLICATION_ID!;
export const DISCORD_TOKEN = process.env.DISCORD_TOKEN!;
export const WARGAMING_APPLICATION_ID = process.env.WARGAMING_APPLICATION_ID!;
if (!discordToken) {
if (!DISCORD_TOKEN) {
throw new Error('No Discord token provided');
}
if (!wargamingApplicationId) {
if (!WARGAMING_APPLICATION_ID) {
throw new Error('No Wargaming application id provided}');
}