- Notifications
You must be signed in to change notification settings - Fork1
A Discord bot template written in TypeScript using Node.js and Discord.js v14
License
yumikodev/discord.ts-bot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Created by@yasuyumiko
Contributors:@Ionut767
Sp: Este es un bot para Discord, escrito en TypeScript y desarrollado conNode.js yDiscord.js en su versión 14.
En: This is a Discord bot, written in TypeScript and developed withNode.js andDiscord.js version 14.
Sp:
- Revisa las variables de entorno (
.env.example
)- Las propiedades marcadas como
opcional
tienen un valor predeterminado en./src/config.ts
- Las propiedades marcadas como
- Discord.js requiereNode.js v16.9 o superior para funcionar.
- Puedes cambiar la presencia del bot en
./src/events/init/ready.ts
- Puedes cambiar de comandos de servidor a comandos globales en
./src/modules/builder/index.ts
. (Aprende m s)
En:
- Review the environment variables (
.env.example
)- Properties marked as
optional
have a default value in./src/config.ts
- Properties marked as
- Discord.js requiresNode.js v16.9 or higher to run.
- You can change the bot's Presence in
./src/events/init/ready.ts
- You can switch from server commands to global commands in
./src/modules/builder/index.ts
. (Learn more)
Sp: Para instalar los paquetes/dependecias.
En: To install the packages/dependencies.
# Using npmnpm i# Using pnpmpnpm i# Using yarnyarn i# Using Bunbun install
Sp: Para compilar el código de TypeScript a JavaScript.
En: To compile TypeScript code to JavaScript.
# Using npmnpm run build# Using pnpmpnpm run build# Using yarnyarn run build# Using Bunbun run build
Sp: Para iniciar el botEn:To start the bot
npm start
Tip
Sp: Si esta usando Bun, ejecute el código de la siguiente manera.En: If you are using Bun, run the code as follows.
Para producción / For production:
bun run start:b
Para desarrollo / For development:
bun run dev:b
Note
Sp: Opcionalmente, puede reemplazar los scripts dentro depackage.json
.En: Optionally, you can replace the scripts insidepackage.json
.
Sp:
- Gestor de eventos con subcarpetas (
Event Handler
). - Gestor de comandos con subcarpetas (
Command Handler
). - Gestor de comandos de barra con subcarpetas (
Slash Command Handler
). - Eslint integrado.
- Prettier integrado.
En:
- Event handler with subfolders (
Event Handler
). - Command handler with subfolders (
Command Handler
). - Slash command handler with subfolders (
Slash Command Handler
). - Integrated Eslint.
- Integrated Prettier.
Este proyecto está bajo laMIT License ❤️
This project is licensed under theMIT License ❤️.
Sp: Espero que esta versión mejorada sea de tu agrado. ¡Déjame saber si necesitas algo más!
En: I hope you like this improved version. Let me know if you need anything else!
About
A Discord bot template written in TypeScript using Node.js and Discord.js v14