This is just an example bot for people who have no knowledge on discord.js. To get the bot working you will to go to https://discord.com/developers/applications and create a new application.
After copying the token, create a folder on your desktop and name whatever you want. Then open powershell or cmd and CD to the folder. Then run "npm i" (for this you will need to install node.js from https://nodejs.org) After installing discord.js, run node main.js Your bot will be online.
Also open the main.js file using vscode from https://code.visualstudio.com and change client.login to your bot token you copied from discord.com/developers