Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions blueprints/navi-music/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
services:
navi-music:
# 4.1.0 is the newest release that can boot without a YouTube OAuth2 refresh
# token; 4.1.1+ throws at startup ("YouTube OAuth token is mandatory") unless
# a valid token obtained via an interactive device-code flow is provided, so
# newer tags can never boot with template defaults.
image: anvian/navi-music:4.1.0
restart: unless-stopped
# NaviMusic logs (rather than throws) when DISCORD_TOKEN is empty or invalid,
# then exits 0 because no JDA threads keep the JVM alive. Keep the container
# running in that case so first-time users see the instructions in the logs
# instead of a restart loop; real crashes (non-zero exits) still propagate to
# the restart policy.
entrypoint:
- sh
- -c
- >-
java $$JAVA_OPTS -jar /app/NaviMusic.jar nogui --spring.profiles.active=prod;
code=$$?;
if [ "$$code" -eq 0 ]; then
echo "NaviMusic is idle. Set DISCORD_TOKEN (and optionally Spotify/YouTube credentials) in the Environment tab, then redeploy.";
tail -f /dev/null;
fi;
exit $$code
environment:
DISCORD_TOKEN: ${DISCORD_TOKEN}
SPOTIFY_CLIENT_ID: ${SPOTIFY_CLIENT_ID}
SPOTIFY_CLIENT_SECRET: ${SPOTIFY_CLIENT_SECRET}
YOUTUBE_POTOKEN: ${YOUTUBE_POTOKEN}
YOUTUBE_VISITOR: ${YOUTUBE_VISITOR}
YOUTUBE_OAUTH2: ${YOUTUBE_OAUTH2}
17 changes: 17 additions & 0 deletions blueprints/navi-music/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"id": "navi-music",
"name": "NaviMusic",
"version": "4.1.0",
"description": "A Discord music bot that plays YouTube and Spotify tracks and playlists in voice channels.",
"logo": "navi-music.png",
"links": {
"github": "https://github.com/andre-carbajal/NaviMusic",
"website": "https://github.com/andre-carbajal/NaviMusic",
"docs": "https://github.com/andre-carbajal/NaviMusic#configuration"
},
"tags": [
"discord",
"music",
"bot"
]
}
Binary file added blueprints/navi-music/navi-music.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions blueprints/navi-music/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[config]
env = [
# Required: create a Discord bot and paste its token.
"DISCORD_TOKEN=",
# Optional but recommended for Spotify links: https://developer.spotify.com/dashboard
"SPOTIFY_CLIENT_ID=",
"SPOTIFY_CLIENT_SECRET=",
# Optional YouTube tweaks (leave empty to use the default anonymous clients).
"YOUTUBE_POTOKEN=",
"YOUTUBE_VISITOR=",
"YOUTUBE_OAUTH2=",
]
Loading