Usage Manual
Setup
Install Node.js (version 16 or higher recommended)
Install dependencies:
npm install
Configuration
Open the main bot file and edit these values:
host: '',
port: "",
host → your server IP (example: yourserver.aternos.me)
port → your server port (example: 25565)
If your server requires login:
bot.chat('/register "password"')
bot.chat('/login "password"')
Replace "password" with your actual password.
If your server does not require login, you can remove these lines.
Running the Bot
Start the bot with:
npm start
or
node index.js
What the Bot Does
Joins your server
Automatically logs in (if configured)
Jumps periodically to avoid AFK kick
Looks at nearby players
Prints chat messages in console
Restarts automatically if disconnected
Notes
Designed for Aternos / offline-mode servers
Make sure your server allows idle players
Keep the bot running to keep the server active
Troubleshooting
If the bot disconnects → it will auto restart
If login fails → check password or remove login lines
If it doesn’t join → verify IP and port