Skip to content

Commit d22ae40

Browse files
committed
Slack bridge: Update Slack bridge with Events API.
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.
1 parent 20ccb22 commit d22ae40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulip/integrations/bridge_with_slack/run-slack-bridge

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ if __name__ == "__main__":
154154
print("MAKE SURE THE BOT IS SUBSCRIBED TO THE RELEVANT ZULIP STREAM(S) & SLACK CHANNEL(S)!")
155155

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

159159
backoff = zulip.RandomExponentialBackoff(timeout_success_equivalent=300)
160160
while backoff.keep_going():

0 commit comments

Comments
 (0)