Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = {
outgoingWebhookServer: {
port: 666,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, did you want to change this to Number(process.env.PORT || 666)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that might be too specific to Heroku.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process.env.PORT seems generic enough to me to leave in. Based on #10, though, 666 is probably not the right number to keep in.

domain: 'your.webhook.server.com',
hookPath: '/irc-echo'
hookPath: '/irc-echo',
localhost: 'localhost'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still meditating on this object key a bit.. it seems weird to call it localhost, but it's also telling that the value should be...

},
echoChannel: '#irc-echo',
botName: 'IRCBot',
Expand Down
2 changes: 1 addition & 1 deletion lib/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {

/* Slack Outgoing Web Hook listening server */

var server = new Hapi.Server('localhost', config.slack.outgoingWebhookServer.port, {
var server = new Hapi.Server(config.slack.outgoingWebhookServer.localhost, config.slack.outgoingWebhookServer.port, {
location: config.slack.outgoingWebhookServer.domain,
});

Expand Down