feat: switched to .env

This commit is contained in:
TresAbhi committed 2023-04-20 14:09:22 +00:00
1 parent 03ec2397a5
commit d40708f878
9 files changed
+37 -18

No files matched your search

+12
View File
@@ -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');
}
}