Make port configurable in .env

This commit is contained in:
Wizzard 2024-03-03 21:33:44 -05:00
parent 95bade9c88
commit 64bdd47aed
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
OBS_PASSWORD=4444
PORT=5555
tokenAddress=1287981y925hjskklsjatkls
DISCORD_TOKEN=21987578912592781598
STATS_CHANNEL_ID=982157698127589

View File

@ -9,7 +9,7 @@ const Discord = require('discord.js');
const readline = require('readline');
const envPath = path.resolve(__dirname, '.env');
const obsWebSocketUrl = 'ws://localhost:4444';
const obsWebSocketUrl = `ws://localhost:${process.env.PORT}`;
const password = process.env.OBS_PASSWORD;
const discordToken = process.env.DISCORD_TOKEN;