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
Hubot commands as /slash commands in slack #223
Comments
Slash commands are manually configured from the Team settings 😓 Another problem is that the output of Slash commands is only visible to the user using it, which might not always be what you want. Hubot includes expressjs so you could make a http listener for receiving a Slash command, and configure it yourself. |
Look at the implementation of "Room" integration. They are able to add On Thu, Sep 10, 2015 at 12:52 AM, Josh Nichols notifications@github.com
Thanks & Regards, |
There is /giphy too which posts publicly. But you can't do that for your own integrations or slash commands as far as I can tell.
|
I'm pretty sure official integrations can do more than just Slash commands. Basically, Slack would need to support more options for Slash commands before this could be done 😓 |
Slash commands have been updated:
(Not that that necessarily makes OP's request any easier) |
I actually had an idea: just register a single Hubot slash command, and then pass the arguments. That combined with In Channel should get the desired effect. Although, then it gets complicated, because does sending a message back from a slash command have parody with using chat.postMessage? Would scripts need to be developed for one or the other? Should hubot commands be able to specify they are ephemeral? |
Slash commands are such different beasts from bots (and Hubot is definitely, in Slack terminology, a bot), that I'm tempted to call this out of scope for this project. Slash commands could be implemented using Express in parallel with the rest of Hubot, and I believe this would be the right way to do this, rather than torturing Hubot to accommodate the very different mechanism. |
Can we add selective hubot commands as /slash commands so we can use autocomplete?
The text was updated successfully, but these errors were encountered: