Skip to content

Section Slack (basic)

Wim edited this page Feb 5, 2022 · 15 revisions

NB: For the full Slack setup guide please check this page.

Configuration

[slack]
[slack.myslack]
Token="xoxb-123456789-aBeautifulBotToken"
RemoteNickFormat="{BRIDGE} - @{NICK}"
# this will maps threads from other bridges on slack threads
PreserveThreading=true

Legacy configuration

If you are using the legacy configuration this is how you should configure it (but please also consider moving to the newer setup 🙂).

[slack-legacy]
[slack-legacy.myslack]
#Token to connect with the Slack API
#You'll have to use a test/api-token using a dedicated user and not a bot token.
#See https://github.com/42wim/matterbridge/wiki/Slack-bot-setup for more information
Token="xoxp-123456789-LowerAndUPpercase"
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "

Auth Comparison

This is a simple comparison of the Slack connection methods, to help you understand and differentiate between each:

👇 Feature \ Token Type 👉 Bot user Legacy
(personal account)
Legacy
(dedicated account)
Bridge Type slack slack-legacy slack-legacy
Token prefix xoxb- xoxp- xoxp-
Supported
1. Auto-join channels
3. Uses separate integration slot
4. User's outgoing messages relayed
5. File uploads show as from... bot you dedicated user
Clone this wiki locally