Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilim0t committed Feb 27, 2019
1 parent c02210d commit 93031d6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ module.exports.Slack = class Slack {
async reply(message) {
// console.debug(`message: ${JSON.stringify(message)}\n`);
const {user, text, channel, subtype, ts} = message;
if (subtype === "bot_message" || subtype === "channel_join" || subtype === "group_join") {
return
} else if (subtype === "message_changed") {
return
} else if (subtype === "message_deleted") {
return
} else if (subtype === "message_replied") {
return
} else if (subtype) {
return
}

console.log(user, this.rtm.activeUserId);
if (user === this.rtm.activeUserId) {
return
} else if (!text || text === "/") {
Expand Down

0 comments on commit 93031d6

Please sign in to comment.