0 Section Slack (basic)
Wim edited this page 2022-02-05 23:57:03 +01:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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. Users outgoing messages relayed
5. File uploads show as from… bot you dedicated user