Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 92dc086

Browse files
committedOct 28, 2019
PR review changes
1 parent 2a4f25a commit 92dc086

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎lib/CoreBot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ function Botkit(configuration) {
15851585
}));
15861586
botkit.webserver.use(express.static(static_dir));
15871587

1588-
botkit.webserver.server = botkit.webserver.listen(
1588+
botkit.httpserver = botkit.webserver.listen(
15891589
botkit.config.port,
15901590
botkit.config.hostname,
15911591
function() {

‎lib/SlackBot.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,10 @@ function Slackbot(configuration) {
566566
// normalize fields to match the rtm message format
567567
message.user = message.user.id;
568568

569-
// home and modal surfaces don't have channel IDs
569+
// home and modal surfaces don't have channel IDs -.-
570+
// we default channel ID to user ID so that string operations will still work
570571
if ((message.view && (message.view.type === 'home' || message.view.type === 'modal'))) {
571-
message.channel = {};
572+
message.channel = message.user.id;
572573
} else {
573574
message.channel = message.channel.id;
574575
}

0 commit comments

Comments
 (0)
This repository has been archived.