errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.13k stars 615 forks source link

Fix Slack backend's use of deprecated method IM.OPEN #1431

Closed gkspranger closed 4 years ago

gkspranger commented 4 years ago

I am installing the Slack backend via errbot[slack] .. I am getting DEBUGs in my logs and sometimes outright errors about the used of a deprecated method IM.OPEN

https://github.com/errbotio/errbot/blob/master/errbot/backends/slack.py#L592-L603

https://api.slack.com/methods/im.open

2020-06-18T13:27:31.66-0400 [APP/PROC/WEB/0] ERR 2020-06-18 17:27:31,662 DEBUG errbot.backends.slack Tried to build an identifier from '<@abc123>' but got exception: Slack API call to im.open failed: method_deprecated

It appears we need to use this method, but not sure how to implement/test :: https://api.slack.com/methods/conversations.open

thanks, greg

jcastro-sfdc commented 4 years ago

1432 Have a look at this

image

gkspranger commented 4 years ago

thanks @jcastro-sfdc for looking into this -- i appreciate the work and the PR

cappetta commented 4 years ago

Just hit this. Thanks for fixing @jcastro-sfdc

sijis commented 4 years ago

PR was merged to master. Please try it out and let us know if the problem persists.

olanystrom commented 4 years ago

Works great, when is this release coming? 6.1.4 was a long time ago

sijis commented 4 years ago

6.1.5 was release.