unkronnn/RelivedBOT
Bot Support resmi Relived Roleplay. Mengelola sistem tiket berbasis Thread, formulir Modals, dan otomatisasi administrasi server.
В этом репозитории нет файла лицензии. Код открыт для чтения, но само по себе это не даёт права использовать его.
README.md
🎮 Relived Roleplay - Discord Bot
Bot Discord multifungsi untuk server Relived Roleplay dengan fitur moderasi, musik, sistem ticket, dan manajemen server yang lengkap.
📋 Daftar Isi
- Fitur Utama
- Requirements
- Instalasi
- Konfigurasi
- Struktur Project
- Commands
- Deployment
- Troubleshooting
- Contributing
- License
✨ Fitur Utama
🛡️ Moderasi
- Ban/Kick/Softban - Kelola member yang melanggar aturan
- Timeout - Temporary mute member
- Warn System - Sistem peringatan dengan riwayat
- Purge - Hapus pesan secara bulk
- Ghost Ping Detection - Deteksi mention yang dihapus
- Anti-Spam Protection - Proteksi otomatis dari spam
🎵 Musik
- Play - Putar musik dari YouTube/Spotify
- Queue Management - Sistem antrian lagu
- Controls - Pause, resume, skip, stop
- Volume Control - Atur volume musik
- Loop Mode - Repeat single/queue
- Now Playing - Informasi lagu yang sedang diputar
🎫 Sistem Ticket
- 6 Kategori Ticket:
- 💰 Donate
- 👤 Report Player
- 🐛 Report Bug
- 👮 Report Staff
- 📖 Character Story (CS)
- 💀 Character Killed (CK)
- Private Threads - Setiap ticket dalam thread terpisah
- Claim System - Staff bisa claim ticket
- Ticket Add - Tambah member ke ticket
- Close Request - User bisa request close ticket
🎤 Temporary Voice Channels
- Auto-Create Voice - Buat voice channel otomatis
- Voice Panel - Kontrol penuh atas voice channel
- Custom Settings - Limit user, lock/unlock, rename
- Auto-Delete - Hapus otomatis saat kosong
🎉 Welcome & Booster
- Welcome Messages - Sambut member baru dengan custom embed
- Booster Perks - Reward untuk server booster
- Booster Role Claim - Booster bisa claim custom role
- Booster Logs - Track semua aktivitas booster
📊 Server Management
- Server Stats - Statistik server lengkap
- Rules Setup - Setup dan edit rules dengan mudah
- Channel Management - Move, organize channels
- Leave Threads - Bulk leave/archive threads
- Message Checker - Cek pesan member
👨💼 Staff Tools
- Devlog System - Catat progress development
- LOA Requests - Leave of Absence management
- Ask Staff - System pertanyaan untuk staff
💾 Database Features
- MongoDB Integration - Penyimpanan data persistent
- Voice Interaction Tracking - Track aktivitas voice
- Permission System - Kelola permission per fitur
- Channel Manager - Manajemen channel database
📦 Requirements
- Node.js v18.0.0 atau lebih tinggi
- MongoDB (Local atau MongoDB Atlas)
- Discord Bot Token dari Discord Developer Portal
- FFmpeg (untuk music features)
- Git (optional, untuk cloning)
🚀 Instalasi
1. Clone Repository
git clone https://github.com/Relived-RP/Bot-Discord.git
cd Bot-Discord
2. Install Dependencies
npm install --legacy-peer-deps
Note: Flag --legacy-peer-deps diperlukan untuk mengatasi konflik dependency.
3. Setup Environment Variables
Buat file .env di root folder:
# Discord Configuration
TOKEN=your_discord_bot_token_here
CLIENT_ID=your_application_client_id
GUILD_ID=your_guild_id_optional
# Database
MONGO_URI=mongodb://localhost:27017/relivedbot
# Atau MongoDB Atlas: mongodb+srv://username:[email protected]/relivedbot
# Environment
NODE_ENV=development
# Ticket System Channels (Optional)
CHANNEL_DONATE_ID=1234567890123456789
CHANNEL_REP_PLAYER_ID=1234567890123456789
CHANNEL_BUG_ID=1234567890123456789
CHANNEL_REP_STAFF_ID=1234567890123456789
CHANNEL_CS_ID=1234567890123456789
CHANNEL_CK_ID=1234567890123456789
4. Build Project
npm run build
5. Deploy Slash Commands
npm run deploy
6. Run Bot
Development mode (with auto-reload):
npm run dev
Production mode:
npm start
⚙️ Konfigurasi
Setup Commands
1. Welcome System
/setup-welcome
Konfigurasi pesan welcome untuk member baru.
2. Ticket System
/setup-ticket
Setup channel dan permission untuk sistem ticket.
3. Booster Log
/setup-booster-log
Setup logging untuk aktivitas booster.
4. Temporary Voice
/tempvoice-panel
Buat panel kontrol untuk temporary voice channels.
5. Rules Setup
/rules-setup
Setup channel rules dengan embed interaktif.
📁 Struktur Project
RRPBOT/
├── src/
│ ├── commands/ # Slash commands
│ │ ├── moderation/ # Ban, kick, warn, etc.
│ │ ├── music/ # Music player commands
│ │ ├── server/ # Server management
│ │ └── staff/ # Staff-only commands
│ ├── controllers/ # Business logic
│ │ ├── ask_controller.ts
│ │ ├── music_controller.ts
│ │ └── ...
│ ├── handlers/ # Event & interaction handlers
│ │ ├── events/ # Discord events
│ │ ├── buttons/ # Button interactions
│ │ ├── modals/ # Modal submissions
│ │ └── select-menus/ # Select menu handlers
│ ├── services/ # Core services
│ │ ├── booster/ # Booster management
│ │ ├── cache/ # Caching layer
│ │ └── tempvoice/ # Voice management
│ └── index.ts # Main entry point
├── shared/
│ ├── database/ # Database layer
│ │ ├── managers/ # Data managers
│ │ ├── services/ # Database services
│ │ └── trackers/ # Activity trackers
│ ├── types/ # TypeScript types
│ └── utils/ # Utility functions
├── docs/ # Documentation
├── assets/ # Static assets
├── .env # Environment variables
├── package.json # Dependencies
└── tsconfig.json # TypeScript config
🤖 Commands
Moderasi Commands
| Command | Description | Permission |
|---|---|---|
/ban | Ban member dari server | BAN_MEMBERS |
/kick | Kick member dari server | KICK_MEMBERS |
/softban | Ban & unban untuk hapus pesan | BAN_MEMBERS |
/timeout | Timeout member | MODERATE_MEMBERS |
/warn | Beri warning ke member | KICK_MEMBERS |
/warnings | Lihat warning member | KICK_MEMBERS |
/purge | Hapus pesan secara bulk | MANAGE_MESSAGES |
/check-ghost-ping | Cek ghost ping di channel | MANAGE_MESSAGES |
Musik Commands
| Command | Description |
|---|---|
/play | Putar musik dari URL/query |
/pause | Pause musik |
/resume | Resume musik |
/skip | Skip lagu saat ini |
/stop | Stop musik dan clear queue |
/queue | Lihat queue musik |
/nowplaying | Info lagu yang diputar |
/volume | Atur volume (0-100) |
/loop | Toggle loop mode |
Server Management
| Command | Description | Permission |
|---|---|---|
/setup-welcome | Setup welcome message | ADMINISTRATOR |
/setup-ticket | Setup sistem ticket | ADMINISTRATOR |
/setup-booster-log | Setup booster logging | ADMINISTRATOR |
/rules-setup | Setup channel rules | ADMINISTRATOR |
/edit-rules | Edit rules yang ada | ADMINISTRATOR |
/tempvoice-panel | Panel voice channels | ADMINISTRATOR |
/serverinfo | Info lengkap server | - |
/stats | Statistik server | - |
/move-channel | Pindahkan channel | MANAGE_CHANNELS |
/leave-threads | Leave bulk threads | MANAGE_THREADS |
Ticket Commands
| Command | Description |
|---|---|
/ticket-add | Tambah user ke ticket |
/close-request | Request close ticket |
Staff Commands
| Command | Description | Permission |
|---|---|---|
/devlog | Buat development log | Staff Role |
/check-messages | Cek pesan member | ADMINISTRATOR |
🌐 Deployment
Deploy ke VPS/Server
- Install Node.js & MongoDB
# Ubuntu/Debian
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs mongodb
- Clone & Setup
git clone https://github.com/Relived-RP/Bot-Discord.git
cd Bot-Discord
npm install --legacy-peer-deps
- Configure & Build
# Edit .env dengan konfigurasi production
nano .env
# Build project
npm run build
# Deploy commands
npm run deploy
- Run with PM2 (Recommended)
# Install PM2
npm install -g pm2
# Start bot
pm2 start ecosystem.config.cjs
# Auto-start on reboot
pm2 startup
pm2 save
Deploy ke Pterodactyl
Lihat dokumentasi lengkap di DEPLOYMENT.md
Quick Start:
- Upload file ke server atau clone repository
- Set environment variables di panel Pterodactyl
- Set startup command:
chmod +x /home/container/start.sh && /home/container/start.sh - Start server
🔧 Troubleshooting
Bot tidak connect
Solusi:
- Cek token di
.envsudah benar - Pastikan bot sudah di-invite ke server
- Cek intents sudah diaktifkan di Developer Portal
Music commands tidak jalan
Solusi:
- Install FFmpeg di server
- Cek bot ada permission CONNECT & SPEAK di voice channel
- Pastikan dependency
@discordjs/voiceterinstall
Database error
Solusi:
- Cek MongoDB service berjalan:
sudo systemctl status mongodb - Cek connection string di
.env - Test koneksi:
mongo <your_connection_string>
Build error
Solusi:
- Hapus
node_modulesdanpackage-lock.json - Install ulang:
npm install --legacy-peer-deps - Cek versi Node.js:
node --version(harus >=18.0.0)
Permission error
Solusi:
- Cek bot role ada di posisi tertinggi (setelah server owner)
- Cek bot punya semua permission yang diperlukan
- Pastikan permission hierarchy benar
🤝 Contributing
Kontribusi sangat welcome! Silakan:
- Fork repository ini
- Buat branch baru:
git checkout -b feature/AmazingFeature - Commit changes:
git commit -m 'Add some AmazingFeature' - Push ke branch:
git push origin feature/AmazingFeature - Buat Pull Request
Development Guidelines
- Gunakan TypeScript untuk semua file baru
- Follow existing code style
- Test semua perubahan sebelum commit
- Update dokumentasi jika perlu
📝 License
Project ini menggunakan MIT License.
📞 Support
Untuk bantuan dan pertanyaan:
- Discord Server: Relived Roleplay
- GitHub Issues: Report Bug/Request Feature
- Documentation: Lihat folder
/docsuntuk dokumentasi lengkap
🙏 Credits
Dibuat dengan ❤️ untuk komunitas Relived Roleplay
Teknologi yang digunakan:
- Discord.js - Discord API wrapper
- TypeScript - Type-safe JavaScript
- MongoDB - NoSQL database
- ytdl-core - YouTube downloader
- play-dl - Music streaming
🔄 Changelog
Version 1.0.0
- ✅ Sistem moderasi lengkap
- ✅ Music player dengan queue
- ✅ Ticket system dengan 6 kategori
- ✅ Temporary voice channels
- ✅ Welcome & booster system
- ✅ Server management tools
- ✅ MongoDB integration
- ✅ TypeScript support
Made with 💙 for Relived Roleplay Community
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью