mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
feat: tokens and ids naming convention
This commit is contained in:
1 parent
537d0c34ea
commit
4be7852bf3
17 files changed
+46
-46
No files matched your search
@@ -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}');
|
||||
}
|
||||
Reference in new issue
Block a user