Union-bot is a modular JavaScript bot designed to automate tasks, manage your community, and bring your server to life! 🎉🤖
- ✨ Features
- 📦 Installation
- ⚙️ Configuration
▶️ Usage- 📜 Commands
- 🛠️ Troubleshooting
- 🤝 Contributing
- ✉️ Contact
- ✅ Modular Command System: Easily add, remove, and customize commands 🔌
- 🔒 Permission Management: Control access by role 🛡️
- 🤖 Auto-Moderation: Anti-spam, profanity filter, and link moderation 🚫
- 🎉 Fun & Utility Commands: Memes, polls, reminders, and more 🎈
- 🔗 Extensible Plugins: Integrate third-party APIs or your own modules 🌐
-
Clone the repository:
git clone https://github.com/0x062/Union-bot.git cd Union-bot -
Install dependencies:
npm install
-
Create a
.envfile based on the example:# .env BOT_TOKEN=your_discord_bot_token 🔑 PREFIX=! ⚡️
Configure config.json or environment variables:
{
"prefix": "!", // 🔣 Command prefix
"ownerID": "YOUR_ID", // 👑 Your user ID
"intents": ["GUILDS", "GUILD_MESSAGES"],
"partials": ["MESSAGE", "CHANNEL", "REACTION"]
}- prefix: Command trigger (e.g.,
!,?) - ownerID: Discord ID for owner-only commands
- intents & partials: Discord.js options
Start the bot:
npm start 🚀Or run in development mode with live reload (if configured):
npm run dev 🔄| Command | Description |
|---|---|
!help |
📖 Display all available commands |
!ping |
⚡️ Check bot latency |
!ban @user |
🔨 Ban a user from the server |
!kick @user |
👢 Kick a user from the server |
!mute @user |
🤫 Mute a user |
!poll "Q?" |
📊 Create a yes/no poll |
!remind 10m |
⏰ Set a reminder (e.g., 10m, 1h) |
💡 You can add custom commands in the
commands/folder! 🌟
- ❌ Bot not responding: Verify your token and bot status.
⚠️ Missing permissions: Ensure the bot has the correct roles and permissions.- 🐛 Startup errors: Delete
node_modulesand runnpm installagain.
Need more help? Open an issue on the repository.
Contributions are welcome! Follow these steps:
- Fork the repository 🍴
- Create a feature branch (
git checkout -b feature/YourFeature) 🌱 - Commit your changes (
git commit -m "Add YourFeature") 📝 - Push to the branch (
git push origin feature/YourFeature) 🚚 - Open a pull request 🔃
Please adhere to the Code of Conduct. 🙏
- GitHub: 0x062 🐙
- Twitter: @your_twitter_handle 🐦
Thank you for using Union-bot! 🙌