fork of https://f-hub.org/XMPP/xmpp-discord-bridge

Cleaned up formatting.

+26 -6
+26 -6
README.md
··· 19 19 20 20 ⚠️ This guide also does not use a "venv" (virtual environment). I had an issue running it in its own "venv". If someone wants to troubleshoot it, contributions are welcome. 21 21 22 - 1. Install needed dependencies. `sudo apt install git python3-full pip cmake` 23 - 2. Create a new system user to run it under. `sudo adduser --system --home /var/lib/xmpp-discord-bridge xmpp-discord-bridge` 24 - 3. Now open a shell as that user. `sudo -u xmpp-discord-bridge -s` 25 - 4. Run: `cd && git clone "https://codeberg.org/queer-spark/xmpp-discord-bridge.git" && cd xmpp-discord-bridge && python3 -m pip install . --user --break-system-packages && cd` 22 + 1. Install needed dependencies. 23 + 24 + sudo apt install git python3-full pip cmake 25 + 26 + 2. Create a new system user to run it under. 27 + 28 + sudo adduser --system --home /var/lib/xmpp-discord-bridge xmpp-discord-bridge 29 + 30 + 3. Now open a shell as that user. 31 + 32 + sudo -u xmpp-discord-bridge -s 33 + 34 + 4. Run: 35 + 36 + cd && git clone "https://codeberg.org/queer-spark/xmpp-discord-bridge.git" && cd xmpp-discord-bridge && python3 -m pip install . --user --break-system-packages && cd 37 + 26 38 5. Create and edit `~/config.toml`. Refer to [example.toml](example.toml) for options. 39 + 27 40 6. `exit` to leave the shell. 28 - 7. Copy the service file to systemd's system directory. `sudo cp /var/lib/xmpp-discord-bridge/xmpp-discord-bridge/optional/xmpp-discord-bridge.service /etc/systemd/system/` 41 + 42 + 7. Copy the service file to systemd's system directory. 43 + 44 + sudo cp /var/lib/xmpp-discord-bridge/xmpp-discord-bridge/optional/xmpp-discord-bridge.service /etc/systemd/system/ 45 + 29 46 8. Read through the [XMPP](#xmpp) and [Discord](#discord) sections and make sure the listed requirements are met. 30 - 9. Start and enable the bridge. `sudo systemctl enable --now xmpp-discord-bridge.service` 47 + 48 + 9. Start and enable the bridge. 49 + 50 + sudo systemctl enable --now xmpp-discord-bridge.service 31 51 32 52 ### XMPP 33 53