Only works with ARK Ascended Docker image by azixus!
git clone https://github.com/NIREKI/DockerDiscordBot.git
- Change directory
cd DockerDiscordBot
- Install Python3 Dependencies with
pip3 install -r requirements.txt
. Make sure Python3 and Pip3 are installed.- If that shouldn't work, manually install the dependencies discord.py, docker and python-dotenv
- Edit
example.env
with your own token, id's, container name and prefix - Rename
example.env to .env
e.g. withmv example.env .env
- Setup the Linux Service according to the following description:
Path: /etc/systemd/system/name.service
[Unit]
Description=*Discord Bot fuer den ARK Server*
After=multi-user.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 */etc/ark/DockerDiscordBot/bot.py*
[Install]
WantedBy=multi-user.target
- Put the file there for the service to work properly
- Remember to change the path, the name and the description
- Use
sudo systemctl daemon-reload
to reload the services - Start and enable with
sudo systemctl start *name*.service
andsudo systemctl enable *name*.service
- Check status with
sudo systemctl status *name*.service