Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a slackbot pull messages from a private channel and post in another slack channel?

I am wondering if a slack bot can pull messages that are tagged with a certain string of characters from a private channel and then post that "tagged" message in another channel (private or public). All within the same slack group.

like image 873
Jouncey Avatar asked Oct 19 '22 12:10

Jouncey


1 Answers

Yes, a Slack bot can do that. But he needs to be invited to a channel (public and private) to be able to monitor it. He then receives all messages in that channel and can react to it in any way you want. Bots can only use a subset of all Slack API methods, but yes they can post a copy of a message to another channel based on keywords.

See the Slack documentation on bots for more information.

like image 100
Erik Kalkoken Avatar answered Oct 21 '22 06:10

Erik Kalkoken