No description
  • Python 94.2%
  • Shell 3%
  • Batchfile 1.8%
  • Dockerfile 1%
Find a file
2026-11-20 14:22:13 +07:00
music Initial commit 2026-11-20 14:22:13 +07:00
.gitignore Initial commit 2026-11-20 14:22:13 +07:00
bot.py Initial commit 2026-11-20 14:22:13 +07:00
discord-music-bot.service Initial commit 2026-11-20 14:22:13 +07:00
Dockerfile Initial commit 2026-11-20 14:22:13 +07:00
install-service.sh Initial commit 2026-11-20 14:22:13 +07:00
PANDUAN-JALAN-DI-PC.md Initial commit 2026-11-20 14:22:13 +07:00
README.md Initial commit 2026-11-20 14:22:13 +07:00
requirements.txt Initial commit 2026-11-20 14:22:13 +07:00
run.sh Initial commit 2026-11-20 14:22:13 +07:00
start-bot.bat Initial commit 2026-11-20 14:22:13 +07:00

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_TIMEOUT di .env) & saat VC kosong
  • Slash commands + prefix commands (!play dll)

Setup Bot di Discord

  1. Buka https://discord.com/developers/applications → New Application → tab Bot → Reset Token → copy token.
  2. Di tab Bot, aktifkan Message Content Intent.
  3. 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 sebagai proxy + proxy_auth terpisah — 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.