View on GitHub

discord-wormhole

Connect multiple Discord guilds with wormhole

« back to home

Setup

The obvious step is registering the bot on the Discord webpage. Duck or Google around if you don’t know what to do.

Install required tools, clone the repository and install python packages:

apt install git redis-server python3
git clone git@github.com:sinus-x/discord-wormhole.git wormhole
cd wormhole
pip3 install -r requirements.txt

Fill the config file and run the bot with python3 init.py. To get the wormhole to work, you must create beam and open wormholes; see administration.

Systemd

You probably want to have your bot started as soon as the server is booted. Edit the example below it so it matches your setup.

[Unit]
Description=Wormhole Discord bot
After=multi-user.target

[Service]
Restart=on-failure
User=wormhole
StandardOutput=journal+console

WorkingDirectory=/home/wormhole/wormhole
ExecStart=python3 init.py

[Install]
WantedBy=multi-user.target

Copy the file to /etc/systemd/system/wormhole.service and run

sudo systemctl enable wormhole.service
sudo systemctl start wormhole.service

« back to home