use cfg for port

This commit is contained in:
Christopher Cookman 2023-08-18 20:02:10 -06:00
parent fdbd809920
commit 1614905552
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -11,7 +11,6 @@ const hook = new Discord.WebhookClient({ url: config.webhook }, {
});
const fs = require('fs');
const app = express();
const port = 3000;
app.use(express.json());
app.post('/sms', async (req, res) => {
@ -71,6 +70,6 @@ app.post('/sms', async (req, res) => {
res.send("OK");
});
app.listen(port, () => {
app.listen(config.port, () => {
console.log(`Listening on port ${port}`);
});