No description
Find a file
2024-03-14 19:14:23 +01:00
src V3 2024-03-14 19:14:23 +01:00
.gitignore V3 2024-03-14 19:14:23 +01:00
config.json V3 2024-03-14 19:14:23 +01:00
docker-compose.yml commit 2024-03-05 13:27:39 +01:00
Dockerfile V3 2024-03-14 19:14:23 +01:00
package-lock.json V3 2024-03-14 19:14:23 +01:00
package.json V3 2024-03-14 19:14:23 +01:00
README.md V3 2024-03-14 19:14:23 +01:00
tsconfig.json V3 2024-03-14 19:14:23 +01:00

Discord JS template in Typescript

Installation

  • Clone the repository
  • Run npm i and npm i -g typescript tsx to install all dependences
  • Change .envExemple file to .env
  • Enter your bot token and bot id in .env file

Developpement

  • You can copy the ping.ts file in /src/commands/default to start creating your own commands
  • You can modify the files in /src/events to use events as you would

NPM commands

  • Run npm run dev to run the dev mode
  • Tun npm run build to build the project
  • Run npm run start to run the compiled code

Docker configuration

  • Change the service name and the full path to your bot in docker-compose.yml file
  • Run docker compose up to run the container