Added configurable port

This commit is contained in:
CBenni 2018-01-07 23:00:58 +01:00
parent d1aafe93d0
commit f4d18fbf79
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,7 @@
{ {
"http": {
"port": 3002
},
"discord": { "discord": {
"token": "<discord bot token>", "token": "<discord bot token>",
"client_id": "<discord client id>" "client_id": "<discord client id>"

View file

@ -148,8 +148,8 @@ app.get('/:templateName/', async (req, res) => {
} }
}); });
app.listen(3002, () => { app.listen(config.http.port, () => {
console.log('Beebot app listening on port 3002!'); console.log(`Beebot app listening on port ${config.http.port}!`);
}); });