Sign inSign up

pekno/sunobot

By pekno

•Updated 8 days ago

The SUNO Discord Bot is designed to enhance your Discord server by playing music from SUNO URLs

Image
Web servers
0

2.0K

pekno/sunobot repository overview

⁠Logo SUNO Discord Bot

⁠Description

SUNO Discord Bot is a versatile music bot designed to play SUNO music directly in your Discord server. Simply provide a SUNO URL, and the bot will play the music for you. The bot also allows you to manage the music queue with commands to add, remove, skip, pause, resume, and stop music. Additionally, you can search and save local SUNO music. It can also generate lyrics and song if you provide a OPENAI_API_KEY

⁠Commands

CommandDescriptionOptions
profileSearch a SUNO profile by handle- suno_profile: (Required) Searched profile, with autocomplete based on local profiles already saved. UNUSED IF SHOULD_SAVE_LOCALY IS FALSE
playPlay a SUNO music- suno_url: (Required) a SUNO URL
skipSkip a soundNone
pausePause soundNone
resumeResume soundNone
stopStop soundNone
generateNot registered if no OPENAI_API_KEY Generate Lyrics based on your prompt, once reviewed will generate the song and queue it- suno_prompt: (Required) A song prompt

⁠Setup

To configure the SUNO Discord Bot, you need to set the following environment variables:

VariableDescription
LOCALEThe ISO 639 language⁠ code of bot default language.
DISCORD_IDYour Discord Bot ID
DISCORD_TOKENYour Discord Bot Token
SUNO_COOKIE_[value]Your Suno Cookie Check here to see how to retrieve it⁠. You can add multiple, juste replace the [value], one of them will be picked to call the api or generate songs.
OPENAI_API_KEY(Optional) API key from Open AI, required if you want the bot to generate lyrics and songs.
OPENAI_PROMPT(Optional) Prompt to generate the lyrics, use ${lang} as a variable to add the selected language from OPENAI_API_KEY.
SHOULD_SAVE_LOCALY(Optional) Defines if SUNO musics should be saved localy or only remain on the web.
SAVED_DATA_PATH(Optional) Defines the path where all suno data will be stored on the server. Default is ./suno. UNUSED IF SHOULD_SAVE_LOCALY IS False
LOG_LEVEL(Optional) Defines the logging level of the Bot. Default is warning
⁠Example Docker Run Command
docker run -e DISCORD_ID=<your_discord_id> -e DISCORD_TOKEN=<your_discord_token> -e SUNO_COOKIE=<your_suno_cookie> pekno/sunobot

Replace <your_discord_id>, <your_discord_token>, and <your_suno_cookie> with your actual credentials.

Tag summary

Content type

Image

Digest

sha256:badfcc4b1…

Size

266.6 MB

Last updated

8 days ago

docker pull pekno/sunobot