Skip to content

Commit

Permalink
Replace deprecated rtm.start() with rtm.connect()
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Nov 12, 2021
1 parent 0da3cd4 commit d9b2cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slackv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from slack_sdk.web import WebClient
from slackeventsapi import SlackEventAdapter
except ImportError:
log.exception("Could not start the SlackSDK backend")
log.exception("Could not start the SlackV3 backend")
log.fatal(
"You need to install python modules in order to use the Slack backend.\n"
"You can do `pip install errbot[slack-sdk]` to install them."
Expand Down Expand Up @@ -309,7 +309,7 @@ def _rtm_generic_event_handler(client: RTMClient, event: dict):
log.debug(f"RTM event type {event_type} not supported.")

log.info("Connecting to Slack RTM API")
self.slack_rtm.start()
self.slack_rtm.connect()
else:
# If the Application token is set, run in socket mode otherwise use Request URL.
if self.app_token:
Expand Down

0 comments on commit d9b2cfe

Please sign in to comment.