Installing the Discord Bot
Learn how to Install the Discord Bot on Your Server
The Donation Store Discord bot is installed on your server alongside the main Donation Store application. It can be on the same server as Donation Store or it can be else where.
The setup is similar to the main Donation Store app setup as it comes with its own setup script.
Like the main Donation Store app, the Discord Bot requires Python v3 or greater.
Like the main application the Discord bot comes with its own setup script that you can use to install it on your server.
Change to the home directory and pull the latest version of the setup script
cd /home wget https://donationstore.net/static/download-files/discord/setup.py
To run the setup script, remain in the home directory and run
python3 setup.py [your Discord Bot Token]
python3 setup.py [your Discord Token]
service donationstore start service donationstore stop service donationstore restart
To allow the Donation Store service to take the Discord Bot Token as a parameter, Donation Store maintains a .serviceconf configuration file specifically for the service.
To change the Discord token you can just edit the service configuration file related to the Bot. Simply navigate to the bot's directory and open the service config file with a text editor like nano or vim
cd /home/donationstore-discord/env vim .serviceconf
It should look something like
Replace the token then restart the bot
service donationstore-discord restart
Now that the Discord Bot is up and running on your server, it needs to be invited to your server and connected to your webstore. To find out how follow the Using the Discord Bot guide.