Skip to content

Commit

Permalink
internal webhook should run on fixed port
Browse files Browse the repository at this point in the history
  • Loading branch information
SaitDev committed Sep 10, 2018
1 parent 68c09f2 commit 89027a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions services/discordBots.org.js
Expand Up @@ -11,7 +11,7 @@ class DiscordBotOrg {
this.listeners = [];
this.service = new DBL(config.discordBotOrg.token,
{
webhookPort: process.env.PORT || 5000,
webhookPort: 5000,
webhookAuth: config.discordBotOrg.webhookAuth
},
client
Expand All @@ -25,7 +25,7 @@ class DiscordBotOrg {
});

this.service.webhook.on('ready', hook => {
client.errorLogger.info(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`, true);
client.errorLogger.info(`Internal webhook running at http://${hook.hostname}:${hook.port}${hook.path}`, true);
});
this.service.webhook.on('vote', vote => {
//TODO: remove these debug after success on production
Expand Down
2 changes: 1 addition & 1 deletion web.js
Expand Up @@ -16,5 +16,5 @@ app.get('/', (req, res) => {
})

app.listen(port, () => {
console.log(`Webhook running at ${path} on port ${port}`);
console.log(`[Info] Webhook running at ${path} on port ${port}`);
})

0 comments on commit 89027a7

Please sign in to comment.