Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

private group cannot response the hubot command, how can I set the environment

Open zb471914758 opened this issue 10 years ago • 3 comments

export ROCKETCHAT_ROOM='' export LISTEN_ON_ALL_PUBLIC=true

I get the help information on https://github.com/RocketChat/hubot-rocketchat the LISTEN_ON_ALL_PUBLIC can work on private groups, as below picture

listen on all public

when I execute bin/hubot -a rocketchat,

all the public channels can get the hubot response(eg. hubot time) , but the private group can't response, do you know why? Or is there something else to be set?

zb471914758 avatar Mar 14 '16 08:03 zb471914758

Did you invite the hubot user to the private channel?

engelgabriel avatar Mar 14 '16 12:03 engelgabriel

@zb471914758

That environment variable might be a bit misleading. Pretty much it lets it respond to any messages for rooms its in. If you mention the bot in a public room he is added to the room, then able to respond. This isn't the case for private groups.

So for private groups you have to explicitly add the bot.

IMPORTANT NOTE: This option also allows the bot to listen and respond to messages from all newly created private groups that _the bot's user has been added as a member._

geekgonecrazy avatar Mar 14 '16 15:03 geekgonecrazy

yes, it's ok, that is the reason. Thanks

zb471914758 avatar Mar 16 '16 03:03 zb471914758