![](https://private-user-images.githubusercontent.com/60827680/239777336-e9c74055-d5b9-4c13-805a-8bd252fb1eb6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMjQ2MDAsIm5iZiI6MTcxOTEyNDMwMCwicGF0aCI6Ii82MDgyNzY4MC8yMzk3NzczMzYtZTljNzQwNTUtZDViOS00YzEzLTgwNWEtOGJkMjUyZmIxZWI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDA2MzE0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThkNDM5YTQ1ODA1ODk4NGViNDZiYzI2ODJhNmJkNzMzNmUxZDMyYzNmZDIzZWRmYjAwMmQxNGYzYjM2ZTRlY2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5A_hr3po3vL1xoF-ZzWuy2GTT818csXzI21IqXQFOeo)
This is a repo with source code for Sanya-nya Discord bot. It plays music from YouTube and works both on slash and prefixed commands. You can invite the official version of Sanya-nya here. Or host your own instance of Sanya-nya with the button below:
![](https://private-user-images.githubusercontent.com/60827680/239776238-215393c3-7241-4ff8-bf91-248eb1e09a89.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMjQ2MDAsIm5iZi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0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0ZjU2YmFmZDdiNGUxNzEyODJlNmE3MzI4NGQ3MmJkY2IyODMxMjE5YzliNjdlZWI2ZTMwNjQ5ZjExZjBmYTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.2CtQJFq5-_wlO84hmthY5EL5hKc1lqjeiL_jn1YSEk8)
![](https://private-user-images.githubusercontent.com/60827680/239778384-92bdab02-43db-402d-a3da-c409338a40d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMjQ2MDAsIm5iZiI6MTcxOTEyNDMwMCwicGF0aCI6Ii82MDgyNzY4MC8yMzk3NzgzODQtOTJiZGFiMDItNDNkYi00MDJkLWEzZGEtYzQwOTMzOGE0MGQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDA2MzE0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiNjRiZDFkN2MxMzAyMGM0MDlmNTkyNTY3ZDliNTQ3YjJhYmQ2YWU5NGI5NzQ2NWM1OGVmMmM5MjljNDUxMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.K33SnR5oglS_SRBwMaVNmOVEWnDBTmR0oN7WH9SvB1g)
List of all bot's commands and their description.
ping
- Current Sanya's pinghelp
- List of all bot commands and it's prefixplay
- Play/Add song to the queuestop
- Stop player, disconnect from VCloop
- Loop current trackskip
- Skip current trackqueue
- View current track queuepause
- Pause player playbackstatus
- Info about current Bot statusvolume
- Change player volumeresume
- Resume playbackreplay
- Replay current trackprevious
- Play previous tracklanguage
- Change Bot's language for yourself
This bot is completely ready to be hosted on Railway:
- Click
Deploy on Railway
button above. - Follow instructions to deploy the bot to Railway.
- Remember to set environmental variables like
BOT_TOKEN
,LAVALINK_URI
to yours. - If you don't have a Discord bot you can create it on Discord Developer Portal.
- Remember to add your bot to your server. Invite url can be generated on application settings page.
- Now, when your bot is deployed and all variables are set, you need to set custom build command (here is why):
- Go to your railway project Settings.
- Find field named Build command.
- Paste the following text there:
pip uninstall -y discord.py && pip uninstall -y py-cord && pip install py-cord
- That's all! Your bot should now be up and running.
Important: If you are going to host this bot by yourself, I highly recommend to use your lavalink server hosted by you or on a hosting. I'm too lazy to look for ways of doing it but you should definitely come up with something.
-
Remember that bots that play music from YouTube violate discord rules and will never be verified by Discord, and may even be banned.
-
This bot is just a fun project, it contains the code from one of my other bot's old modules, which was abandoned due to an update to the Discord rules.
-
If you found a bug you can create an issue and if I have time I will look through it. Pull requests are also welcome.