Skip to content

Commit

Permalink
Update bot.js
Browse files Browse the repository at this point in the history
  • Loading branch information
brunitob committed Nov 6, 2020
1 parent 41e0821 commit 7ba2541
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,10 @@ const handlePrivateEventMessage = async (message) => {
);

// replace placeholder in message
console.log(event.response_message)

const replyMsg = event && event.response_message ?
event.response_message.replace("{code}", getCode.code)
: defaultResponseMessage.replace("{code}", getCode.code)

// Send DM
replyMessage(message, replyMsg);
} else {
Expand Down

0 comments on commit 7ba2541

Please sign in to comment.