A lightweight AFK bot for DonutSMP that stays online with minimal resource usage, perfect for running on Raspberry Pi or any low-resource environment.
This bot is designed for legitimate AFK farming on DonutSMP. Use responsibly and follow server rules. The creators are not responsible for any server bans or issues resulting from bot usage. Read Updated rules on afking
DonutSMP requires Microsoft authentication. You must have a legitimate Microsoft account to connect to the server. Offline mode will not work.
- Ultra-lightweight: Minimal resource usage, perfect for Raspberry Pi
- AFK Mode: No movement, no actions, just stays connected
- Auto-reconnect: Automatically reconnects if disconnected (10-second intervals)
- Microsoft Auth: Full support for Microsoft authentication
- Real-time logging: Console output for all events
- Node.js 22.x+ (Download from nodejs.org)
- A Microsoft account with Minecraft Java Edition (required for DonutSMP)
- Read the Microsoft Authentication Guide
# Clone or download this repository
cd DonutFlayer
# Install dependencies
npm install
# Run the bot (Microsoft auth required for DonutSMP)
node bot.js YourUsername microsoft# Basic usage (Microsoft auth required for DonutSMP)
node bot.js YourUsername microsoft
# The bot will connect to donutsmp.net:25565The bot connects to:
- Server:
donutsmp.net - Port:
25565 - Version:
1.21.4(adjustable in code if needed)
IMPORTANT: DonutSMP requires Microsoft authentication. Read the Microsoft Authentication Guide for detailed setup instructions.
- Run:
node bot.js YourUsername microsoft - Browser will open for Microsoft login
- Authorize the bot to access your Minecraft account
- Bot connects automatically after authentication
✅ Does:
- Connects to DonutSMP using Microsoft authentication
- Stays connected 24/7
- Responds to keep-alive packets automatically
- Logs connection status and errors
- Auto-reconnects on disconnect
- Uses minimal system resources
❌ Does NOT:
- Move or rotate camera
- Perform any actions
- Chat or interact
- Use pathfinding
- Have anti-AFK features (not needed, just stays connected)
- RAM: ~50MB
- CPU: Minimal (any modern processor)
- Storage: ~100MB
- Network: Stable internet connection
Perfect for:
- Raspberry Pi (any model)
- VPS servers
- Home servers
- Old computers
- Always-on devices
- Never share your Microsoft account credentials
- Use application-specific passwords if available
- Keep your Node.js installation updated
- Run in a secure environment, do not expose to any open ports.
- Verify your Microsoft account has Minecraft access
- Check firewall settings
- Ensure port 25565 is open
- Verify server status at donutsmp.net
- Make sure you're using Microsoft authentication (not offline)
- Check your Microsoft account credentials
- Try logging into Minecraft launcher first
- Close unnecessary applications
- Check system resources with
topor Task Manager
MIT License - Feel free to use and modify as needed.
This bot is designed for legitimate AFK farming on DonutSMP. Use responsibly and follow server rules. The creators are not responsible for any server bans or issues resulting from bot usage. Read Updated rules on afking
Feel free to submit issues, feature requests, or pull requests to improve the bot!
/pay dreamyfx
Happy AFK farming! 🍩