elastic / jarvis

Logstash's ChatOps bot, J.A.R.V.I.S.
41 stars 28 forks source link

Slack Bot apps no longer meant to use rtm.start permission #111

Open jsvd opened 4 years ago

jsvd commented 4 years ago

The lita addon for slack we use for Jarvis is https://github.com/litaio/lita-slack.

This addon relies in a set of permissions that is now deprecated, such as rtm.start and im.open. New bot applications in Slack will no longer expose these permission scopes, which means the lita framework currently needs to be deployed as a generic application, and even then requires a tweak in https://github.com/litaio/lita-slack/blob/master/lib/lita/adapters/slack/api.rb#L24, from:

response_data = call_api("im.open", user: user_id)

to:

response_data = call_api("conversations.open", users: user_id)

Lita and such addons haven't been updated in a few years, which means Jarvis may not be able to rely on Lita in the near future and an alternative is needed.