I'm too lazy to write this, this is just a template for a discord bot in discord.js V.14, I'll add more stuff later when I'm not lazy.
- Clone the repo
- Run
npm install
- Create a file called
.env
and put your discord token inside it - Run
node ./src/index.js
to start the bot
- Create a file in the
./src/commands
folder - Copy the code from
./src/commands/exampleCommand.js
and paste it into your new file - Change the name of the command & aliases in the
module.exports
object at the top of the file - Change the code in the
run
function to do whatever you want the command to do
- Create a file in the
./src/events
folder - Copy the code from
./src/events/commandListener.js
and paste it into your new file - Change the name of the event in the
module.exports
object at the top of the file - Change the code in the
run
function to do whatever you want the event to do
I didn't add support for this because quite frankly it's a pain in the ass to do so... have fun doing it yourself :)