This is a very simple Discord.js bot supporting v14 and slash command interactions.
First of all, go to Discord developer dashboard and create or choose the bot you want to host, go to the bot tab, and click on Regenerate token
, and then copy the token.
After this, go to the Secrets tab, in the key
enter BOTTOKEN
and BOTCLIENTID
and in the value
fields, from the values you copied from the Discord developer dashboard. (The Cliend ID is on the OAuth2 -> General page)
Inside the commands
folder you can create any file like hello.js
and it will be automatically identified as a command.
Whenever you restart the bot, it will automatically reload all the commands.
To run you bot, just hit Run
. You can also turn on Always On
on the cover page to further improve your hosting experience.