Skip to content

Commit

Permalink
fix(bot-participation): Check new members only in owned chats
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Dec 29, 2017
1 parent 19c8ee6 commit 778713b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/bot-participation/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const debug = require('debug')('rubot:features:botparticipation:index')
const { allowWhiteListChat } = require('../../middlewares/allowed-chat')
// const text = require('../../text')

/**
Expand Down Expand Up @@ -39,7 +40,7 @@ async function onNewChatMembers(ctx) {


function featureBotParticipation(bot) {
bot.on('new_chat_members', onNewChatMembers)
bot.on('new_chat_members', allowWhiteListChat, onNewChatMembers)
}

module.exports = featureBotParticipation

0 comments on commit 778713b

Please sign in to comment.