LittleHirishima is a Discord bot (Pycord-based) focused on voice/music playback from YouTube. It supports slash commands for queue management, loop modes, pause/resume, seek, shuffle, and now-playing embeds.
- Slash-command based music controls
- YouTube search by keyword or direct YouTube URL
- Per-guild queue persistence under
lib/Guild/<guild_id>/voice.json - Loop modes: normal, repeat queue, repeat current song
- Auto-disconnect when the bot is left alone in a voice channel
- Recent-play tracking per guild in
lib/Guild/<guild_id>/recent.json
All commands below are slash commands.
/connect- Connect bot to your current voice channel/disconnect- Disconnect bot from the channel/play [query]- Ifqueryis set, play/search a song; if omitted, resume/queue [query] [remove]- Add/list/remove queued songs (remove: allsupported)/pause- Pause current playback/loop- Cycle loop mode/next [index]- Skip to next queued track or a specific queue index/playing- Show currently playing song/seek <timestamp>- Seek track position (SS,MM:SS,HH:MM:SS)/shuffle- Shuffle queue order/replay- Restart current song from the beginning
- Python 3.10+
- FFmpeg available in PATH
- Discord library (Pycord API usage)
aiohttpmutagenyt-dlp
The project already includes a bundled lib/lib folder with several dependencies and helper modules.
- Create a Discord application and bot token.
- Create
Little_Hirishima Secrets.jsonin the project root:
{
"TOKEN": "YOUR_BOT_TOKEN"
}- Verify paths in
botPath.py:
YTDLPEXECUTABLEdefaults tolib/yt-dlp_linuxANIMEDIRECTORY,REQUESTSDIRECTORY,PIPESDIRECTORYare environment-specific
-
Ensure
ffmpegis installed and accessible. -
Install missing Python packages if your environment does not already have them:
pip install py-cord aiohttp mutagen yt-dlpRun directly:
python little_hirishima.pywOr use the included run.bash (Linux/tmux workflow).
- This repository contains legacy/admin/extra automation logic (anime buffer utilities, host control commands) in
botControl.py, but the primary active functionality is the Discord music bot. - The default downloader executable path is Linux-oriented. If running on Windows, update
YTDLPEXECUTABLEinbotPath.pyto a valid Windowsyt-dlpexecutable. - Guild voice queue state is persisted automatically and reloaded on restart.
- A Next.js web app in
hirishima-webis planned to provide a browser-based control panel for managing the Discord bot (music queue, playback controls, and bot status) without using Discord commands directly.