mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: switched to .env
This commit is contained in:
1 parent
03ec2397a5
commit
d40708f878
9 files changed
+37
-18
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { config } from 'dotenv';
|
||||
|
||||
config();
|
||||
|
||||
export default function tokenRequirements() {
|
||||
if (!process.env.DISCORD_TOKEN) {
|
||||
throw new Error('DISCORD_TOKEN is not defined');
|
||||
}
|
||||
if (!process.env.WARGAMING_APPLICATION_ID) {
|
||||
throw new Error('WARGAMING_APPLICATION_ID is not defined');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user