-
-
Notifications
You must be signed in to change notification settings - Fork 0
3. Installation
Chelsea edited this page Jul 24, 2023
·
9 revisions
Before you start, set up a new discord app in the developer portal and give it a name!
NOTE: DOCS MAY REFER TO A PREVIOUS VERSION NUMBER, CHECK THE LATEST VERSION NUMBER IN OUR RELEASES
- Clone the Repo:
wget https://github.com/Foxtrt-com/Foxbot/archive/refs/tags/v1.5.0.tar.gz
tar -xf v1.5.0.tar.gz
mkdir /etc/foxbot
cp -r Foxbot-1.5.0/. /etc/foxbot/
- Install python requirements
pip3 install -r /etc/foxbot/requirements.txt
- Edit Configuration Settings
mkdir /etc/foxbot/data/restricted
nano /etc/foxbot/data/restricted/token.txt
your-DiscordAppBotToken
-
Run Foxbot
- Run as service
I put Java in the foxbot directory - your install/setup may vary
nano /etc/systemd/system/lavalink.service
[Unit] Description="Lavalink" After=network.target [Service] Type=simple WorkingDirectory=/etc/foxbot/main/lavalink ExecStart=/etc/foxbot/java/bin/java -jar Lavalink.jar Restart=on-failure [Install] WantedBy=multi-user.target
nano /etc/systemd/system/foxbot.service
[Unit] Description="Foxbot" After=lavalink.service [Service] Type=forking WorkingDirectory=/etc/foxbot ExecStart=python3 start.py Restart=on-failure [Install] WantedBy=multi-user.target
systemctl daemon-reload
sudo systemctl start lavalink.service && sudo systemctl enable lavalink.service
sudo systemctl start foxbot.service && sudo systemctl enable foxbot.service
- Run via CLI
I put Java in the foxbot directory - your install/setup may vary
Run Lavalink:
/etc/foxbot/java/bin/java -jar /etc/foxbot/main/lavalink/Lavalink.jar
Run Foxbot:
cd /etc/foxbot && python3 start.py