Naka is a discord bot to play song from youtube.
Naka's name is taken from japanese cuiser. Also, exists in Kantai Collection games and anime as a fleet's idol. To live up its name, this bot will 'sing' for you like an idol.
- Play song from youtube url.
- Search song from youtube.
- Song queue system.
- Pause song.
- Resume song.
- Stop song.
- Next song.
- Previous song.
- Skip/jump to specific song in queue.
- Remove 1 or more song from queue.
- Delete queue.
- Discord bot and its token
- Go
- Youtube API key
- Redis (optional)
- Docker + Docker compose (optional)
-
Git clone this repo.
git clone github.com/rl404/naka
-
Rename
.env.sampleto.envand modify according to your configuration.Env Default Description NAKA_DISCORD_TOKEN*Discord bot token. NAKA_DISCORD_PREFIX=Discord bot prefix command. NAKA_CACHE_DIALECTinmemoryCache type ( inmemory,redis).NAKA_CACHE_ADDRESSCache address. NAKA_CACHE_PASSWORDCache password. NAKA_CACHE_TIME24hCache duration. NAKA_YOUTUBE_KEY*Youtube API key. NAKA_LOG_LEVEL-1Log level NAKA_LOG_JSONfalseLog json format NAKA_LOG_COLORtrueLog color -
Run.
make bot # or using docker make docker-bot # to stop docker make docker-stop
-
Invite the bot to your server.
-
Join a voice channel.
-
Try
=help. -
Have fun.
# Play song in queue.
=play
# Will put the song to queue and play.
=play https://www.youtube.com/watch?v=dQw4w9WgXcQ
# Will search, put the song to queue, and play.
=play suisei stellar# See queue list.
=queue
# Will put the song to queue.
=queue https://www.youtube.com/watch?v=dQw4w9WgXcQ
# Will search and put the song to queue.
=queue suisei stellar=join # Bot join to voice channel.
=leave # Bot leave voice channel.
=pause # Pause song.
=resume # Resume song.
=stop # Stop song.
=next # Go to next song in queue.
=prev # Go to previous song in queue.
=skip 2 # Go to song number 2 in queue.
=remove 1 2 # Remove song number 1 and 2 from queue.
=purge # Remove all songs from queue.MIT License
Copyright (c) 2022 Axel