When I was practicing Node.js, I made a simple JavaScript Discord bot that works with Slash Commands, using Discord.js. It is nothing special, but I think a good template for beginners who start working with Discord.js. The bot fetches information from ManageBots simple Statistic API.
See the source code here:
https://github.com/elixss/simple-js-bot
See the source code here:
https://github.com/elixss/simple-js-bot