No description
- Python 94.2%
- Shell 3%
- Batchfile 1.8%
- Dockerfile 1%
| music | ||
| .gitignore | ||
| bot.py | ||
| discord-music-bot.service | ||
| Dockerfile | ||
| install-service.sh | ||
| PANDUAN-JALAN-DI-PC.md | ||
| README.md | ||
| requirements.txt | ||
| run.sh | ||
| start-bot.bat | ||
Phalaenopsis Music — Discord Music Bot
Bot music Discord fitur lengkap, self-contained (discord.py + yt-dlp + FFmpeg, tanpa Lavalink).
Fitur
- Play dari judul / YouTube / YouTube Playlist (maks 100) / Spotify track / SoundCloud / URL langsung
- Search dengan dropdown pilih lagu, Queue dengan pagination + tombol kontrol di Now Playing
- Pause/resume, skip, skipto, previous, stop, seek, forward, rewind
- Loop off/track/queue, shuffle, remove, move, clear, history
- Volume 0–150% (tersimpan per server), filter audio: bassboost, nightcore, vaporwave, 8D, karaoke, lofi, echo, tremolo, vibrato
- Autoplay (YouTube Mix/Radio saat queue habis), mode 24/7, lirik via LRCLIB
- Auto-disconnect saat idle (default 180s, atur
INACTIVITY_TIMEOUTdi .env) & saat VC kosong - Slash commands + prefix commands (
!playdll)
Setup Bot di Discord
- Buka https://discord.com/developers/applications → New Application → tab Bot → Reset Token → copy token.
- Di tab Bot, aktifkan Message Content Intent.
- Tab OAuth2 → URL Generator: scopes
bot+applications.commands, permissions: Connect, Speak, Send Messages, Embed Links, Read Message History, Use Slash Commands → buka URL-nya untuk invite bot ke server kamu.
Jalanin
cp .env.example .env # isi DISCORD_TOKEN
./run.sh # bikin venv, install deps, jalanin bot
# atau sebagai service systemd (auto-restart + nyala setelah reboot):
./install-service.sh
systemctl status discord-music-bot
journalctl -u discord-music-bot -f
Catatan environment VM ini
- Semua egress VM lewat HTTP proxy (env
https_proxy). Bot otomatis membaca env itu dan meneruskannya ke discord.py sebagaiproxy+proxy_authterpisah — wajib terpisah, karena websocket Discord gagal kalau kredensial proxy hanya menempel di URL. Di mesin tanpa proxy (PC/VPS biasa) env kosong dan bot konek langsung. - Terverifikasi di VM ini: REST Discord (login ditolak hanya karena token test palsu), gateway websocket HELLO, ekstraksi YouTube/playlist/Spotify/SoundCloud, LRCLIB lyrics, dan FFmpeg streaming + filter.
- Belum bisa diverifikasi sebelum bot live beneran: media voice UDP (Discord voice pakai UDP; di sandbox agent socket UDP diblokir di level syscall). Kalau voice gagal connect saat tes live pertama, jalankan kode yang sama di PC/VPS Daniel — tidak ada perubahan kode yang diperlukan.