Skip to content

A template to start your Discord bot in Typescript with discord.js

License

Notifications You must be signed in to change notification settings

Cbrra/discord-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-bot-template

Discord server

About

A template to start your Discord bot in Typescript with discord.js

Installation

  1. Install Node.js
  2. Download the template
  3. Add your bot's token and id in the .env file
  4. Run npm i
  5. Run npm run register-commands
  6. Run npm run start (or F5 to debug if you are on vscode)
  7. Your bot should be online !

To know

  • You can rename the src/structures/Bot.ts file and its class by the name of your bot
  • In your commands you can use the built-in async functions execute, executeAutocomplete and executeContext in relation to what your command does
  • Commands and events loaded are added in Bot#commands and Bot#events respectively
  • The Command and Event classes both have the disabled property which, once enabled, allows you to disable the desired command or event

Help

Need help ? Join my Discord server and send me a private message !

About

A template to start your Discord bot in Typescript with discord.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published