Deploying Bot
This guide only covers deploying a bot with a CLI (Command Line Interface) on either a Ubuntu Server (Linux) or Windows.
Last updated
Was this helpful?
This guide only covers deploying a bot with a CLI (Command Line Interface) on either a Ubuntu Server (Linux) or Windows.
Last updated
Was this helpful?
Node.js is required for any of True Development's products to run, as they are developed using the Discord.js library on the Node.js runtime. To download Node.js on a windows machine visit the and download the latest version, however installing on an Ubuntu Linux machine is slightly different. You must use a version manager know as NVM (Node Version Manager), hence the regular method of installing Node.js via apt will provide a very outdated version. Visit to get more information on downloading NVM on Ubuntu.
PM2 allows you to run the bot on your machine without constantly having a terminal window, alongside some other cool features. PM2 can be installed with the command ran inside any terminal window, if you having issues installing make sure you have followed the previous step and have Node.js installed.
The next step is to run npm run build
to build and install all required packages and dependencies, this process may take some time depending on your internet connect and speed. Once completed, you can run the command npm run start
to start the bot inside the current terminal. You can then verify that everything works before deploying the application on PM2, once you are satisfied that everything is setup and configured correctly you can then run pm2 start index.js
to start the bot on a PM2 container.
That's it, if you followed all steps correctly your bot should be online and available for use. If you have any other questions regarding installation or setup please directly contact .