Change example bot to work with slackclient>=2.0.#51
Conversation
|
Right on @jeffFranklin! Thank you for this PR. 🙇 Before we merge this, would you mind updating the ReadMe's Python requirements to reflect your changes as well. We'd just have to remove the lines about Python 2.7 since the new SDK only supports Python 3.6+. |
|
Thanks @RodneyU215! I've added a note about slackclient v2 to the README. I think python 3.6+ is the way to be, and it would simplify your documentation and make it even better. The part about virtualenv could go away, as it would get replaced with |
Roach
left a comment
There was a problem hiding this comment.
Thanks for doing this @jeffFranklin! 🎉
|
Should I change the readme to be python3-specific in this PR? I could. It wasn't clear if you wanted that as part of this change. Thanks. |
|
@jeffFranklin Thanks for your contribution! I'm sorry for taking a long time to merge this. |
Summary
Package slackclient 2.0 and beyond uses namespace
slackin place ofslackclient.Use the equivalent
slack.WebClient, and change the method call to useslack.WebClient.chat_postMessage. This is for the bot example code.Requirements (place an
xin each[ ])