by Fumiki Takahashi on WordPress.org

You can create such kind of bot.
This plugin integrates Slack and WordPress.
By default, this plugin does nothing. It’s true.
Slack has many API intergrations, but hameslack uses 2 of them.
Upper is easier. This plugin helps the connection between Slack and WordPress and you can concentrate on what you should do with slack.
Here is a list of use case of us on WordPress with many editors.
For more details, please read our Documentation. We have some samples.
The simplest usage is post to slack. You can do like below:
do_action( 'hameslack', $text_to_post, $attachments, $channel );
Function is also available, but I prefer to use do_action to avoid annoying if ( function_exists('func_name')).
Everything works fine if you set properly.
deprecated at 2.0: this endpoint was unofficial and official one is only for Enterprise grid. Users now can send invitation reqeust from their profile page.deprecated at 2.0: Slack recommends Events API instead.Click install and activate it.
Download and you can use it. Any pull requests are welcomed.
At least, you need Slack Payload URL for Incoming Webhooks. For more details, go to our support site.
As mentioned avobe, this plugin does nothing by default. Please read our Documentation.
If you have any request, please make issue on github.