Skip to content

Commit

Permalink
Slack bridge: Update Slack bridge with Events API.
Browse files Browse the repository at this point in the history
Currently we use the Slacks legacy RTM API as the
"listener" from Slack to Zulip. This commit replaces
RTM API for the supported Events API instead.

Fixes #825.
  • Loading branch information
PieterCK committed Jun 7, 2024
1 parent 20ccb22 commit d22ae40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zulip/integrations/bridge_with_slack/run-slack-bridge
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ if __name__ == "__main__":
print("MAKE SURE THE BOT IS SUBSCRIBED TO THE RELEVANT ZULIP STREAM(S) & SLACK CHANNEL(S)!")

# We have to define rtm outside of SlackBridge because the rtm variable is used as a method decorator.
rtm = RTMClient(token=config["slack"]["token"])
rtm = RTMClient(token=config["slack"]["token"]) // OUTDATED

backoff = zulip.RandomExponentialBackoff(timeout_success_equivalent=300)
while backoff.keep_going():
Expand Down

0 comments on commit d22ae40

Please sign in to comment.