From cf5273e45342844527c8368ba17edc8a242a8461 Mon Sep 17 00:00:00 2001 From: Sijis Aviles Date: Thu, 22 Jul 2021 00:09:06 -0500 Subject: [PATCH] fix: add deprecation notice to SlackRTM backend --- errbot/backends/slack_rtm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/errbot/backends/slack_rtm.py b/errbot/backends/slack_rtm.py index 57deb0526..1b7c4ec65 100644 --- a/errbot/backends/slack_rtm.py +++ b/errbot/backends/slack_rtm.py @@ -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")