lita-slack icon indicating copy to clipboard operation
lita-slack copied to clipboard

Support slash commands

Open brodock opened this issue 9 years ago • 5 comments

Can we support slack slash commands?

Slash commands in Slack has some benefits over the way we are doing today:

  • They work everywhere (PVT, channels, private channels, etc)
  • They provide documentation integrated into the interface

SlackBotsy looks like support this type of integration:

https://github.com/rlister/slackbotsy/blob/master/lib/slackbotsy/bot.rb#L134

brodock avatar Nov 27 '15 18:11 brodock

+1

don't like how lita-slack-handler removed all the code and has forced our team to use this version with lita which doesn't support slash commands.

edit: found I could use: config.robot.alias instead for slash commands! :dancer:

cdrage avatar Dec 03 '15 19:12 cdrage

My understanding is that slash commands are "swallowed" by Slack and not sent as a message to the room. Is that not the case anymore, or are you suggesting that users set up custom slash commands which talk to Lita over HTTP?

jimmycuadra avatar Dec 04 '15 02:12 jimmycuadra

I'm suggesting that lita should enable (probably as a configuration flag) that we opt for Slack "over HTTP" builtin slash command support.

brodock avatar Dec 04 '15 13:12 brodock

Hi, revisiting that space. I wonder if that's still on the table?

asser-hassan avatar Oct 20 '16 22:10 asser-hassan

@jimmycuadra slack commands work through webhooks. We can reuse puma and the existing http handler support to enable that. I believe this will require a separate definition for services that implements slash commands (like slack, mattermost).

brodock avatar Mar 24 '17 14:03 brodock