fraschetti / Octoslack

OctoPrint plugin for Slack, Mattermost, Pushbullet, Pushover, Rocket.Chat, Discord, Riot/Matrix, & Microsoft Teams
MIT License
74 stars 34 forks source link

Appears that I'm no longer able to get token for Slack #86

Closed brad-colbert closed 4 years ago

brad-colbert commented 4 years ago

Hello,

I think I followed the instructions correctly for a Slack integration but there is now this message on Slack:

"We recommend replacing your custom integrations with Slack apps, which have more features and use the latest APIs."

There appears to be no other option. Screen Shot 2020-05-05 at 12 59 55 PM

Is there another way?

Thank you, Brad

brad-colbert commented 4 years ago

Per the instructions:

"Apps & integrations --> Manage --> Custom Integrations --> Bots"

This no longer is an option.

tedder commented 4 years ago

Brad, try this:

This is just a guess, I'm going to try it now and see how it works, but I only use "notifications", not commands, so more testers are needed.

brad-colbert commented 4 years ago

Ted,

That worked! Thank you!

tedder commented 4 years ago

brad or @fraschetti can you reopen this so we update the documentation or figure out an easier way to do this?

fraschetti commented 4 years ago

Hi @tedder I'll reopen it so you and others can easily find this conversations and comment as necessary.

Good news - I've already finished the development of support for the new supported methods for listening for slack commands (for this plugin, that will be polling Slack's endpoint). I'm integrating those changes right now. Stay tuned.

brad-colbert commented 4 years ago

Sorry, I got your message later in the morning. Can't wait for the updates! Thank you for the hard work!

davidkmiller commented 4 years ago

*** UPDATE: after reading some more posts, it looks like it's because I'm using a new not classic Slack bot, and therefore RTM is not supported, but this is planned in a future release?

Can anyone advise what is required under "bot token scopes" in Slack to allow commands; I've used this thread to get notifications working, but I'm not sure what to do for commands? Thanks

fraschetti commented 4 years ago

Hi @brad-colbert @tedder and @davidkmiller

I've just released Octoslack 2.0.0 and with that comes proper support for the new Slack apps. What scopes/permissions you need will depend on what you want to do with the plugin. I've included the list of scopes within the plugin settings dialog but I'll also share them here for initial reference. This list may change over time as Slack makes changes or as we add additional functionality to the plugin. The Octoslack settings dialog should be see as the source of truth going forward.

Slack Bot Webhook Scopes

Bot Token Scopes requied for posting to a channel

Bot Token Scopes requied for uploading assets/files to Slack

Slack Bot Access Token Scopes

Bot Token Scopes requied for posting to a channel

Bot Token Scopes requied for uploading assets/files to Slack

Bot Token Scopes requied for listening for and responding to commands