Skip to content

Instantly share code, notes, and snippets.

View Excigma's full-sized avatar
🌉
trianfl3r:(

Excigma Excigma

🌉
trianfl3r:(
View GitHub Profile
@Excigma
Excigma / matterbridge.md
Last active July 23, 2023 23:30
Slack <=> Discord bridge with Matterbridge

Slack <=> Discord bridge with Matterbridge

This is a tutorial to get an instance of Matterbridge running on a machine using Docker and docker compose.

What is Matterbridge?

Matterbridge is an open-source and self-hosted application that acts as a bridge between different chat platforms. It can connect a variety of services, such as Slack, Discord, Matrix, Telegram, IRC, and more. This means that users on one platform can communicate with users on another without joining each other's servers or networks. Matterbridge is capable of mirroring text messages, files and images across platforms.

Options for hosting

# Declare and initialise variables
# Prompt and collect the number the user wants to get the factorial of
userInput = input("Input a positive integer to calculate it's factorial: ")
factorial = 1
# First try block tries to parse input as a float,
# Which allows decimal points, but throws (fails) when parsing letters,
# Such as "foo bar"
try: