New SweeBridge - SweeZero's own chat relay/bridge.
Find a file
2025-04-06 17:10:05 -07:00
.forgejo/workflows Update .forgejo/workflows/check.yml 2025-04-05 01:15:01 -07:00
logos Update logos/README.txt 2025-04-06 15:34:58 -07:00
.gitignore add external commands to revolt 2025-04-06 15:55:47 -07:00
Dockerfile change formatting, add dockerfile 2025-04-05 23:17:23 -07:00
LICENSE Update LICENSE 2025-03-01 06:47:16 -08:00
README.md Add some revolt patches 2025-04-05 18:25:02 -07:00
requirements.txt change formatting, add dockerfile 2025-04-05 23:17:23 -07:00
sweebridge.py typo 2025-04-06 16:04:11 -07:00

New SweeBridge

SweeZero's own chat relay/bridge.

Discourse Post announcing New SweeBridge

Wiki Post on SweeBridge

Dev note: I can't believe a dedicated bridge for SweeZero between Guilded and Libera.Chat became something so big like this :o

To-Do:

  • Clean up code a bit (which I'm too lazy to)
  • Matrix support
  • Revolt support
  • Discourse support
  • Add Web Dashboard/Control
  • Allow control if you're an operator/admin of the channel/server
  • AnthroChat support
  • SnooNet support
  • OFTC support (Requested by Depresst0)
  • SweeNet support
  • Freenode support (Requested by Mintle on IRC Libera chat)
  • Irc-Nerds support (Requested by Mintle on IRC Libera chat)
  • Add support for adding custom IRC nets

Current platforms:

Requirements of software:

Warning

The user running SweeBridge must have read+write access to /var/www/html/sweebridge
And /var/cache

For matrix images to render, a web server should be setup pointing to /var/www/html/sweebridge (the website path can be set as shown in the environment variable listed below)

Required enviroment variables:

LiberaNick=SweeBridge
LiberaUser=BridgeUser/Libera # for use in ZNC

SweeNetNick=SweeBridge
SweeNetUser=BridgeUser/SweeNet # for use in ZNC

MatrixHomeserver=https://matrix.example.com
# Use the real client API host, not the host with /.well-known/matrix
# If it's running on a different port, you can use https://matrix.example.com:8008/
# I recommend using a custom homeserver instead of matrix.org
# SSL is required

MatrixUserID=@sweebridge:matrix.example.com
MatrixToken=syi_***
MatrixFileCollectURL=https://sweebridge.example.com/ # URL must end with /

ZNCPassword=password # for use in ZNC
DiscordToken=token
GuildedToken=token
RevoltToken=token

Required config.json

{
    "sbconfig": {
        "CommunityName": {
            "discord": {
                "guild": guild_id,
                "channel": channel_id,
                "webhook": "webhook_url"
            },
            "guilded": {
                "server": "server_id",
                "channel": "channel_id",
                "webhook": "webhook_url"
            },
            "revolt": {
                "server": "server_id",
                "channel": "channel_id"
            },
            "libera": {
                "channel": "#channel",
                "flags": {
                    "nosystem": "disable"
                }
            },
            "sweenet": {
                "channel": "#channel",
                "flags": {
                    "nosystem": "full"
                }
            },
            "matrix": {
                "room": "!room_ID:matrix.example.com"
            }
        }
    }
}

Tip

(IRC) nosystem values:

  • disable - Show all system messages
  • partial - Only show Quit, Part, and Join messages
  • full - NO system messages, only user messages

(Matrix) Use room IDs (!ID:Homeserver)

AFAIK, matrix-nio can only use room IDs, so using public handles #room:matrix.example.com will not be supported.

Get your community bridged with Default SweeBridge

  1. Invite SweeBridge

    Discord: Link

    Guilded: Link

    Matrix: /invite @bridge:swee.codes while you're in the desired room

    IRC: /invite sweeBridge #channel

  2. Create webhooks (Discord and Guilded)

    Webhook guide is in SWEE.codes wiki.

    You can now create webhooks using b$createwebhook

  3. Contact Swee

    The easiest ways would be checking Swee's Social Links or emailing meow@swee.codes

Communities bridged with SweeBridge


SweeZero - All platforms supported with SweeBridge are bridged here

MintleChats - Discord <-> Libera.Chat

Bacon Hair Community (BHC) - Discord, Guilded, Libera.Chat, Matrix