[Unit] Description=Discord presence to Matrix ghosts (Lotus) After=network-online.target matrix-synapse.service mautrix-discord.service Wants=network-online.target [Service] Type=simple # The bridge's user: it reads the bot token from the bridge's own config + database. User=mautrix-discord Group=mautrix-discord EnvironmentFile=/etc/lotus-presence/env Environment=BRIDGE_CONFIG=/opt/mautrix-discord/config.yaml Environment=SERVER_NAME=matrix.lotusguild.org Environment=DISCORD_GUILD_ID=1565159371355197570 ExecStart=/usr/bin/python3 /opt/lotus-presence/lotus_presence.py Restart=always RestartSec=30 StandardOutput=journal StandardError=journal SyslogIdentifier=lotus-presence MemoryMax=128M CPUQuota=20% NoNewPrivileges=yes ProtectSystem=strict ProtectHome=yes PrivateTmp=yes [Install] WantedBy=multi-user.target