Back
Slack-Discord Bridge
Slack-Discord Bridge
#slackdiscord
Building a Slack <=> Discord bridge for Nomad List
Launched October 11, 2021
Load previous page…
#slackdiscord Fix app tag appearing in slack again because of new forced bot method to write in unjoined channesl
#slackdiscord Add some favorite channels to whitelist so we can (soft)-test bridge with that
#slackdiscord Decide to not join channel as user as it requires wildly unsafe things
#slackdiscord When user is not in channel on Slack we cannot send as_user. Either join channel or send with generic token
#slackdiscord Add quick-and-dirty channel whitelist so we can test in a few channels first before we let the masses go wild.
#slackdiscord Cache all channels
#slackdiscord Always use NomadList username when transferring messages because other saved usernames might be inaccurate and weird
#slackdiscord Cache third batch of channels
#slackdiscord Add failsafe on rate-limit so I know a) when to try again and b) to avoid getting timed out for eternity
#slackdiscord Check that editing message also works when user has sent an image. (it does)
#slackdiscord make sure to use correct token when message updated, so that messages sent with as_user in Slack can be edited
#slackdiscord Don't accept files unless they're of mimetype image/* and <5MB
#slackdiscord If user is not found in database at all, remove mention to avoid ugly artifacts
#slackdiscord Add explainer comments about how Slack threads are a bit annoying
#slackdiscord Make sure that replies of replies of replies of replies of replies get associated with the correct Slack thread
#slackdiscord Correctly mention the user on the other side of the bridge if they exist in that chat app. Otherwise just replace the ugly mention code with a straight @username
#slackdiscord Fix bug where having slack_access_token empty would accidentally send no token to slack at all instead of generic bot token
#slackdiscord If user is registered in Discord but not registered in Slack, send message with their Nomad List username/profile picture so that they're still recognizable for others
#slackdiscord Write long-ass comment on how the slack reconnect thingy works, so everyone else can understand too and because I'm forgetful too
#slackdiscord Handle Slack 'disconnect' event, because Slack Real-Time Mode might randomly disconnect you whenever they feel like it and then you have to re-establish a connection with a different URL and it all kinda sucks, but now we do it anyways