Setting up a NodeJS bot
Welcome to Something!
In this guide you will learn how to setup your and run your own NodeJS Discord bot.
Make sure to upload your files to your service beforehand!
If you are a new user we recommend reading our Getting Started guide.
Let's start by getting your service into InDev mode.
Read more info on how to activate InDev mode here
Your console should look like this
The first thing you need to do is to install your bot modules. To do that type in the console npm install
A loading screen will show up informing of you the progress. Wait until the process has finished.
After the installation has finished, your cursor should be free and you will be able to execute more commands.
The last thing to do is start your bot. In our example, our bot executable file is "bot.js" thus will run the command node bot.js
Make sure you are on the correct folder when executing the command!
If your bot has started and you see a console output, you have done the process corretly! If not, you can contact our support team for more info!
Recommended: Automatically starting your bot
Updated on: 27/10/2020