This project is a Discord bot designed for Minecraft communities. It displays useful information, rules, IPs, links, and support to users through commands.
- Commands
/guia,/reglas,/ip,/discord,/soporte,/tienda. - Responses with rich messages (embeds) and configurable data.
- Easy to extend and maintain thanks to its modular structure.
bot-template-mc/
├── src/
│ ├── commands/ # Individual bot commands
│ ├── config/ # Sensitive configuration (token, IPs, etc.)
│ └── index.js # Main bot file
├── package.json # Dependencies and scripts
├── .gitignore # Files to ignore in git
├── LICENSE # Project license
└── README.md # This file
git clone https://github.com/FeliponsioDev/bot-template-mc
cd bot-template-mcnpm installCopy the example config file and edit it:
cp src/config/config.json src/config/config.jsonEdit src/config/config.json and place your Discord bot token and your server data.
Note: Do not upload your
config.jsonto GitHub! It is already in.gitignore.
node src/index.jsThe src/config/config.json file is essential for the bot's operation. Here you store all sensitive and configurable data, such as the bot token, server IPs, links, and Discord channel IDs.
If this file is not created, you can make a folder called config and create the config.json file.
{
"token": "YOUR_BOT_TOKEN_HERE",
"ip_java": "play.yourserver.com",
"ip_bedrock": "bedrock.yourserver.com",
"puerto_bedrock": 19132,
"discord_invite": "https://discord.gg/yourinvitecode",
"tienda_url": "https://store.yourserver.com",
"canal_ayuda": "HELP_CHANNEL_ID",
"canal_tickets": "TICKETS_CHANNEL_ID"
}token: Your Discord bot token (never share or upload it to GitHub!).ip_java: Your Minecraft Java server IP.ip_bedrock: Your Minecraft Bedrock server IP.puerto_bedrock: Your Bedrock server port (default 19132).discord_invite: Invite link to your Discord server.tienda_url: Link to your server's store (if you have one).canal_ayuda: Discord channel ID where users can ask for help.canal_tickets: Discord channel ID to create support tickets.
This file allows the bot to be easily configurable and adaptable to any community without modifying the source code.
- Create an account at Render.
- Create a new "Web Service" and connect your repository.
- In "Start Command" put:
node src/index.js - In "Environment" add a variable
NODE_VERSION(e.g.,18or the one you use). - Upload your
config.jsonmanually from the Render dashboard (do not upload it to git). - Done! The bot will run automatically.
Important: Vercel and Netlify are intended for web apps (HTTP), not for Discord bots that require persistent processes. They are not recommended for bots, but you can use Railway or Render for bots.
If you still want to try:
- Use an adapter like vercel-node-server to keep the process alive (not recommended for production).
- Upload your code and set the start command as in Render.
- Create a
.jsfile insrc/commands/following the format of the existing ones. - The bot will load them automatically on startup.
This project is licensed under the MIT license. See the LICENSE file for more details.
If you have questions, feel free to contact me:
- Creator's Discord: feliponsio_2.0
- Discord: Revers Studio
- GitHub: FeliponsioDev
Este proyecto es un bot de Discord diseñado para comunidades de Minecraft. Permite mostrar información útil, reglas, IPs, enlaces y soporte a los usuarios mediante comandos.
- Comandos
/guia,/reglas,/ip,/discord,/soporte,/tienda. - Respuestas con mensajes enriquecidos (embeds) y datos configurables.
- Fácil de extender y mantener gracias a su estructura modular.
bot-template-mc/
├── src/
│ ├── commands/ # Comandos individuales del bot
│ ├── config/ # Configuración sensible (token, IPs, etc.)
│ └── index.js # Archivo principal del bot
├── package.json # Dependencias y scripts
├── .gitignore # Archivos a ignorar en git
├── LICENSE # Licencia del proyecto
└── README.md # Este archivo
git clone https://github.com/FeliponsioDev/bot-template-mc
cd bot-template-mcnpm installCopia el archivo de ejemplo de configuración y edÃtalo:
cp src/config/config.json src/config/config.jsonEdita src/config/config.json y coloca tu token de bot de Discord y los datos de tu servidor.
Nota: ¡No subas tu
config.jsona GitHub! Ya está en el.gitignore.
node src/index.jsEl archivo src/config/config.json es fundamental para el funcionamiento del bot. Aquà se almacenan todos los datos sensibles y configurables, como el token del bot, las IPs de los servidores, enlaces y los IDs de canales de Discord.
Si este archivo no se cuentra creado puedes hacer una carpeta llamada config y crear el archivo config.json.
{
"token": "AQUI_TU_TOKEN_DEL_BOT",
"ip_java": "play.tuserver.com",
"ip_bedrock": "bedrock.tuserver.com",
"puerto_bedrock": 19132,
"discord_invite": "https://discord.gg/yourinvitecode",
"tienda_url": "https://store.tuserver.com",
"canal_ayuda": "ID_CANAL_AYUDA",
"canal_tickets": "ID_CANAL_TICKETS"
}token: El token de tu bot de Discord (¡nunca lo compartas ni subas a GitHub!).ip_java: IP de tu servidor de Minecraft Java.ip_bedrock: IP de tu servidor de Minecraft Bedrock.puerto_bedrock: Puerto de tu servidor Bedrock (por defecto 19132).discord_invite: Enlace de invitación a tu servidor de Discord.tienda_url: Enlace a la tienda de tu servidor (si tienes).canal_ayuda: ID del canal de Discord donde los usuarios pueden pedir ayuda.canal_tickets: ID del canal de Discord para crear tickets de soporte.
Este archivo permite que el bot sea fácilmente configurable y adaptable a cualquier comunidad sin necesidad de modificar el código fuente.
- Crea una cuenta en Render.
- Crea un nuevo servicio de tipo "Web Service" y conecta tu repositorio.
- En "Start Command" pon:
node src/index.js - En "Environment" agrega una variable
NODE_VERSION(ej:18o la que uses). - Sube tu
config.jsonmanualmente desde el dashboard de Render (no lo subas a git). - ¡Listo! El bot se ejecutará automáticamente.
Importante: Vercel y Netlify están pensados para apps web (HTTP), no para bots de Discord que requieren procesos persistentes. No son recomendados para bots, pero puedes usar Railway o Render para bots.
Si aún asà quieres intentarlo:
- Usa un adaptador como vercel-node-server para mantener el proceso vivo (no recomendado para producción).
- Sube tu código y configura el comando de inicio igual que en Render.
- Crea un archivo
.jsensrc/commands/siguiendo el formato de los existentes. - El bot los cargará automáticamente al iniciar.
Este proyecto está licenciado bajo la licencia MIT. Consulta el archivo LICENSE para más detalles.
Si tienes preguntas, no dudes en contactarme:
- Discord del creador: feliponsio_2.0
- Discord: Revers Studio
- GitHub: FeliponsioDev