Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/discord.ts-botPublic template

A Discord bot template written in TypeScript using Node.js and Discord.js v14

License

NotificationsYou must be signed in to change notification settings

yumikodev/discord.ts-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Created by@yasuyumiko

Contributors:@Ionut767

Sobre / About

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.

Pasos a seguir / Steps to Follow

Configuración / Setup:

Sp:

  • Revisa las variables de entorno (.env.example)
    • Las propiedades marcadas comoopcional tienen un valor predeterminado en./src/config.ts
  • 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 asoptional have a default value in./src/config.ts
  • 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)

Instalación, Compilación & Inicio / Installation, Compilation & Start:

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.


Características / Features

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.

License

Este proyecto está bajo laMIT License ❤️

This project is licensed under theMIT License ❤️.


Links


Gracias por usar esto / Thank you for using this :D


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!


[8]ページ先頭

©2009-2025 Movatter.jp