- Visit Discord Developer Portal, create an application, turn on the
Bot
feature, and invite its to your server. - Install Node.js, the version must be atleast 12.x or above.
- Have a place to host your bot.
- You can use VSC to code your bot but it won't run forever.
- Here is some free host that you can use: Glitch.com, Repl.it, Heroku
- I wouldn't recommend using a free host, they have limitations.
- Put these code into your host.
- Go to
config.js
and change them. - In your terminal/console, run
npm install
andnpm start
. (Only if your host didn't do it for you already).
- Open the terminal/console and type in
node .
ornode <your main file name>
. - Or just click start if your host have one.
- Now you can customize your bot and add more command/event to it.