PX-Guard is a powerful anti-raid and user authorization bot designed to protect your Discord server. It prevents unauthorized access attempts, detects suspicious activities, and provides authorization systems to make administrators' jobs easier.
- ✨ Features
- 🚀 Installation
- ⚙️ Configuration
- 💡 Usage
- 🔧 Commands
- 📸 Preview
- 🤝 Contributing
- 📄 License
- 📜 Changelog
-
Anti-Raid Protection
- Instantly detects mass joins and spam attacks
- Automatically bans or quarantines suspicious users
- Locks server settings during raids to prevent damage
-
User Authorization
- Custom role and permission management
- Detailed control for admin, moderator, and other authorized roles
- Automatically detects and intervenes in unauthorized actions by users
-
Unauthorized Action Prevention
- Monitors channel, role, message, and membership changes
- Automatic alerts and logging for suspicious activities
- Approval system for critical operations requiring admin confirmation
-
Advanced Logging System
- Logs all suspicious activities in detail
- Sends real-time notifications to specified channels
-
Easy Setup and Configuration
- Simple, customizable configuration file
- Modern codebase with Discord.js v14 support
- Node.js v16.9.0 or higher
- npm v7 or higher
- Discord.js v14
- A Discord Bot Token from the Discord Developer Portal
-
Clone the repository:
git clone https://github.com/HIMURAw/PX-Guard.git cd PX-Guard
-
Install dependencies:
npm install
-
Start the bot:
node . # or using PM2 (recommended for production) npm install -g pm2 pm2 start index.js --name "px-guard"
Edit the config.js
file with your preferred settings. Here's an example configuration:
module.exports = {
discord: {
token: "Your Discord Bot Token",
guards_token: ["Your Discord Bot Token", "Your Discord Bot Token"],
serverId: "your discord server id",
voiceID: "your discord voice channel id"
},
// ... other configuration options
};
- Automatic raid detection and prevention
- Role and permission management
- Suspicious activity monitoring
Contributions are welcome! Please read our Contributing Guidelines for details on how to contribute to this project.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Found a bug? Please open an issue on our GitHub Issues page.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with ❤️ by HIMURAw
- Thanks to all contributors who helped improve this project
- Special thanks to the Discord.js team for their amazing library