php-slack-bot
php-slack-bot copied to clipboard
Bot sending text to a specific channel
I was wondering if the bot is able to send to a channel without any user command. For example the within my application something happens, I want the bot to post some data.
Hi,
Yes, you can trigger events with webhooks. https://github.com/jclg/php-slack-bot/blob/master/README.md#incoming-webhooks
Enable the bot webserver, then send a HTTP request from you application (using curl for example) to the bot webserver.