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

How to invoke command from Sinatra? #189

Open
cahofmeyr opened this issue May 31, 2018 · 2 comments
Open

How to invoke command from Sinatra? #189

cahofmeyr opened this issue May 31, 2018 · 2 comments

Comments

@cahofmeyr
Copy link

I am using Sinatra and Heroku to run my bot in production.

Is there a way to invoke a bot command from a Sinatra action?

I have another service that makes an HTTP call to the Sinatra app, that I'd like to have invoke a bot command.

@dblock
Copy link
Collaborator

dblock commented May 31, 2018

Nothing built out of the box to do that. Most assumptions are around the fact that the bot receives a well formed slack message via an RTM api. For slash commands or interactive buttons you roll out something like this.

Open to having additions to the framework that make it easier.

@emachnic
Copy link

emachnic commented Dec 5, 2018

This would actually be great for implementing a "ping" endpoint when running in places like Kubernetes. Some way to know if the bot connection to Slack dies so that Kubes can restart would be great.

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

No branches or pull requests

3 participants