This project is a Minecraft bot designed for automating various tasks on the Hypixel network, with a primary focus on advertising for housings & guilds. It leverages the Mineflayer library to interact with the Minecraft server and perform a variety of functions such as handling chat messages, joining parties, advertising, and more.
Ensure you have Node.js installed on your system. You can download it from nodejs.org.
- Clone the repository.
git clone https://github.com/callanplays/advertising-bot cd advertising-bot - Install the required dependencies.
npm install
- Start the bot.
node index.js
- Optional:
Visit http://localhost:3007 to view a prismarine-viewer instance of the bot.
- Automatically sends advertisements in hypixel lobbies.
- Rotates through different randomized advertising messages to avoid spam detection.
- Responds to specific commands sent by authorized users to perform tasks such as restarting, reporting, and more.
- Listens to several Minecraft events such as login, kick, spawn, and more to handle them effectively.
- Special handling for advertising in Hypixel Skyblock.
The bot responds to the following commands sent in the chat by authorized users:
| Command | Description |
|---|---|
.restart |
Restarts the bot. |
.cr <user> |
Reports a user for chat abuse. |
.manualAdv <type> |
Manually sends an advertisement of the given type. |
.startAdv |
Starts the advertisement loop. |
.come |
Moves to the player's position who issued the command. |
.attack |
Attacks the nearest player. |
.stop |
Stops any ongoing advertisement. |
.skyblockAdv |
Starts the Skyblock advertisement loop. |
Edit the config.mjs file to configure bot settings.
export const botArgs = {
host: 'hypixel.net',
port: 25565,
version: '1.8',
auth: 'microsoft'
};
export const Operators = [
"operator1",
"operator2"
];
export const gifter = ["gifter"];
export const botSettings = [
{
gmail: "email@emailservice.sus", // Email associated with the bot
settings: {
autoVisitUsername: "House owner"", // Auto visit username
autoVisitSlot: 1, // Slot to visit
wholesomeAdvertise: false, // Whether to use wholesome advertising
wholesomeDelay: 5, // Delay for wholesome advertising in minutes
rejoinDelay: 180, // Delay for bot to rejoin after being kicked, in minutes
housingID: 1 // ID of the housing
}
}
];- Fork the repo.
- Create your feature branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/new-feature
- Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any queries, please reach out to:
- Chickendoodle08: chinkn on Discord
- Callan: callanftw on Discord