Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot sending text to a specific channel #12

Open
ardowz opened this issue Sep 30, 2016 · 1 comment
Open

Bot sending text to a specific channel #12

ardowz opened this issue Sep 30, 2016 · 1 comment

Comments

@ardowz
Copy link

ardowz commented Sep 30, 2016

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.

@jclg
Copy link
Owner

jclg commented Oct 3, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants