🧐Setup Guide
This guide will show you exactly how to set up the queue bot
You will need to set up a discord bot first. We will not explain this in this guide as there are many tutorials on the internet that show you how to do that. Make sure to enable all bot intents when creating it.
We highly recommend Termius (https://www.termius.com/) to be used to upload files and create ssh sessions with your vps. It is also highly recommended to not use the queue bot on your sniper vps as it will make your sniping delays worse and some commands may not work correctly.
Start by downloading and extracting the zip file from the downloads channel.
Open up Termius and go to
SFTPon the left. Click onSelect Hostand select your vps. Create a new folder by right clicking and selectingNew Folderand name itqueueBot.
Go into the folder and drag and drop the contents of the zip file you extracted earlier into there.
In the
SFTPwindow you can also edit the text files. Start by editing the config.ini file. Please look into Config for explanations of each setting. To start the bot you pretty much only need to set the license_key, token, guildId and businessName (additionally make sure syncCommands is set to true), most of the configuration can be done through the /setup command later. If you do not want to use a system like the ecommerce integration or the coinbase integration make sure to set them toFalseto avoid errors. When you're done with the config file save the file and then press the upload button on the bottom to make sure your changes are made on the server.
Now you can continue by editing the servers.json file. This file will have all the data of the vpss which your snipers are on (not the vps where your queue bot is on). For more info check Servers File. Create as many vps objects as you have sniper vpss. Once done, go to this website https://jsonlint.com/ to validate the json of your servers.json file to prevent any errors. Save the file and upload it like you did with the config file.
With those 2 files done there is nothing else you need to edit. Go ahead and type
chmod +x queueBotto make the file executable. To start the bot for the first time just type./queueBot.The bot will print some warnings/errors, you can ignore them for now. Once the bot is online and has synced all commands you can use /setup to easily set up most of your config. When you're done with the /setup command its recommended that you check the config again and configure all the other stuff like the Coinbase integration or E-Commerce integration to your liking. To make sure the bot is using the new values simply restart it.
To make sure your bot will continue running after you disconnect from the server we will need to use a tool called
screen. To start your bot with screen simply usescreen -S queue ./queueBot, this will also give the screen thequeuename. To exit simply detach from the screen by using CTRL + A followed by CTRL + D. You can now disconnect from your server and the bot will continue running. To resume the screen you can usescreen -r queue.
If you are experiencing crashes:
Install nvm by doing
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash. Then restart your ssh session.After its installed install the latest node version using
nvm install nodefollowed bynvm use nodeReopen the ssh session to make sure the newly installed node version is being use
Install pm2 using
npm install pm2 -gStart the queue bot using pm2 by doing
pm2 start queueBot(you have to cd into the directory first)To setup the auto restart do
pm2 startupfollowed bypm2 save
To check the logs do pm2 list and look for the index of the one running your queue bot, then do pm2 logs 0 (change 0 to whatever your index is). Your bot will now automatically restart if it crashes or your vps restarts + you will have proper error logs which you can send to us to fix your issue.
Last updated