A Discord bot designed to manage a Minecraft server and facilitate seamless communication between Discord users and in-game players.
- Minecraft Server Management: Execute server commands directly from Discord.
- Chat Integration: Relay messages between Discord channels and the Minecraft server chat.
- Event Handling: Respond to specific events occurring within the Minecraft server.
- Custom Commands: Extend functionality with user-defined commands.
- Node.js installed on your system.
- A Discord bot token. You can obtain one by creating a new application on the Discord Developer Portal.
-
Clone the repository:
git clone https://github.com/AfonsoBatista7/DiscordBot.git cd DiscordBot -
Install dependencies:
npm install
-
Configure the bot:
Create a
.envfile in the root directory and add your Discord bot token:DISCORD_TOKEN=your-bot-token-here
-
Run the bot:
-
On Windows:
run.bat
-
On Unix/Linux:
./run.sh
-
Ensure that your .env file contains the necessary environment variables:
DISCORD_TOKEN=your-bot-token-here
You can also configure additional settings as needed for your Minecraft server integration.
commands/: Contains command definitions that the bot can execute.events/: Handles Discord events such as messages, reactions, etc.handlers/: Manages the registration of commands and events.models/: Defines data models used within the bot.images/: Stores image assets used by the bot.main.js: The main entry point of the bot.
Once the bot is running, it will listen for commands in your Discord server. Ensure that the bot has the necessary permissions to read and send messages in the channels you intend to use.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
-
Discord: 0xrage
-
Email: [email protected]
Made with ❤️ for Minecraft server admins and their communities.
Developed by Afonso Batista