Skip to content

Commit

Permalink
fix: add deprecation notice to SlackRTM backend
Browse files Browse the repository at this point in the history
  • Loading branch information
sijis committed Jul 22, 2021
1 parent 11b27da commit cf5273e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions errbot/backends/slack_rtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@ def serve_presences(**payload):
self._presence_change_event_handler(payload["web_client"], payload["data"])

def serve_forever(self):
log.warning(
"This backend is deprecated and will be removed in a future release."
" No future updates, bug fixes or enhancements will be included."
" We strongly advise migrating to SlackV3, which is available"
" at https://github.com/errbotio/err-backend-slackv3."
)
self.sc = RTMClient(token=self.token, proxy=self.proxies)

@RTMClient.run_on(event="open")
Expand Down

0 comments on commit cf5273e

Please sign in to comment.