|
1 | 1 | { |
2 | | - "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL", |
| 2 | + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", |
3 | 3 | "meta": { |
4 | | - "update_url": null, |
5 | | - "version": "PTDL_v2" |
| 4 | + "version": "PTDL_v2", |
| 5 | + "update_url": null |
6 | 6 | }, |
7 | | - "exported_at": "2024-06-01T19:44:16+00:00", |
| 7 | + "exported_at": "2025-03-23T10:31:57+00:00", |
8 | 8 | "name": "Muse", |
9 | 9 | "author": "hello@apollo.moe", |
10 | | - "description": "🎧 a self-hosted midwestern Discord music bot that doesn't suck", |
| 10 | + "description": "\ud83c\udfa7 a self-hosted midwestern Discord music bot that doesn't suck", |
11 | 11 | "features": null, |
12 | 12 | "docker_images": { |
13 | | - "ghcr.io/ptero-eggs/yolks:nodejs_20": "ghcr.io/ptero-eggs/yolks:nodejs_20" |
| 13 | + "ghcr.io\/ptero-eggs\/yolks:nodejs_20": "ghcr.io\/ptero-eggs\/yolks:nodejs_20" |
14 | 14 | }, |
15 | 15 | "file_denylist": [], |
16 | 16 | "startup": "npm start", |
17 | 17 | "config": { |
18 | 18 | "files": "{\r\n \".env\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"DISCORD_TOKEN\": \"DISCORD_TOKEN={{env.discord_token}}\",\r\n \"DATA_DIR\": \"DATA_DIR={{env.data_dir}}\",\r\n \"YOUTUBE_API_KEY\": \"YOUTUBE_API_KEY={{env.api_key}}\",\r\n \"SPOTIFY_CLIENT_ID\": \"SPOTIFY_CLIENT_ID={{env.client_id}}\",\r\n \"SPOTIFY_CLIENT_SECRET\": \"SPOTIFY_CLIENT_SECRET={{env.client_secret}}\"\r\n }\r\n }\r\n}", |
19 | | - "logs": "{}", |
20 | 19 | "startup": "{\r\n \"done\": \"Running version \"\r\n}", |
| 20 | + "logs": "{}", |
21 | 21 | "stop": "^C" |
22 | 22 | }, |
23 | 23 | "scripts": { |
24 | 24 | "installation": { |
| 25 | + "script": "## Credits: Red-Thirten (https:\/\/github.com\/lilkingjr1) for providing most of the installation script\r\napt-get update\r\napt-get install git curl jq -y python3 python3-pip make build-essential -qq\r\n\r\nGITHUB_PACKAGE=\"museofficial\/muse\"\r\n\r\n# Find GitHub download URL for Muse for specified version\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tarball_url')\r\n else\r\n echo -e \"Could not find version \\\"${VERSION}\\\" of Muse. Defaulting to latest release...\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')\r\n fi\r\nfi\r\n\r\n# Download Muse from GitHub & Extract\r\ncd \/mnt\/server\r\necho -e \"Downloading Muse from GitHub...\"\r\ncurl -L ${DOWNLOAD_URL} -o muse.tar.gz\r\necho -e \"Extracting Muse from tarball...\"\r\ntar -xvzf muse.tar.gz --strip-components=1\r\nrm muse.tar.gz\r\n\r\n# Verify and clean up Muse installation\r\nif [ ! -f .env.example ]; then\r\n echo -e \"\\nFailed to download release: ${DOWNLOAD_URL}\\n\"\r\n exit 1\r\nfi\r\ncp .env.example .env\r\nrm -rf .dockerignore Dockerfile .gitignore .github\/\r\nyarn install --prod #--frozen-lockfile\r\n#sed -i 's\/of filterWrapper[)]\/of filterWrapper|| [])\/g' \/mnt\/server\/node_modules\/ytsr\/lib\/utils.js\r\n\r\necho -e \"\\nMuse Successfully Installed!\"", |
25 | 26 | "container": "node:lts-bookworm-slim", |
26 | | - "entrypoint": "bash", |
27 | | - "script": "## Credits: Red-Thirten (https://github.com/lilkingjr1) for providing most of the installation script\r\napt-get update\r\napt-get install git curl jq -y python3 python3-pip make build-essential -qq\r\n\r\nGITHUB_PACKAGE=\"codetheweb/muse\"\r\n\r\n# Find GitHub download URL for Muse for specified version\r\nLATEST_JSON=$(curl --silent \"https://api.github.com/repos/${GITHUB_PACKAGE}/releases/latest\")\r\nRELEASES=$(curl --silent \"https://api.github.com/repos/${GITHUB_PACKAGE}/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tarball_url')\r\n else\r\n echo -e \"Could not find version \\\"${VERSION}\\\" of Muse. Defaulting to latest release...\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')\r\n fi\r\nfi\r\n\r\n# Download Muse from GitHub \u0026 Extract\r\ncd /mnt/server\r\necho -e \"Downloading Muse from GitHub...\"\r\ncurl -L ${DOWNLOAD_URL} -o muse.tar.gz\r\necho -e \"Extracting Muse from tarball...\"\r\ntar -xvzf muse.tar.gz --strip-components=1\r\nrm muse.tar.gz\r\n\r\n# Verify and clean up Muse installation\r\nif [ ! -f .env.example ]; then\r\n echo -e \"\\nFailed to download release: ${DOWNLOAD_URL}\\n\"\r\n exit 1\r\nfi\r\ncp .env.example .env\r\nrm -rf .dockerignore Dockerfile .gitignore .github/\r\nyarn install --prod #--frozen-lockfile\r\n#sed -i 's/of filterWrapper[)]/of filterWrapper|| [])/g' /mnt/server/node_modules/ytsr/lib/utils.js\r\n\r\necho -e \"\\nMuse Successfully Installed!\"" |
| 27 | + "entrypoint": "bash" |
28 | 28 | } |
29 | 29 | }, |
30 | 30 | "variables": [ |
|
40 | 40 | }, |
41 | 41 | { |
42 | 42 | "name": "Data directory", |
43 | | - "description": "Default: ./data", |
| 43 | + "description": "Default: .\/data", |
44 | 44 | "env_variable": "data_dir", |
45 | | - "default_value": "./data", |
| 45 | + "default_value": ".\/data", |
46 | 46 | "user_viewable": true, |
47 | 47 | "user_editable": true, |
48 | 48 | "rules": "required|string|max:20", |
49 | 49 | "field_type": "text" |
50 | 50 | }, |
51 | 51 | { |
52 | 52 | "name": "YouTube API Key", |
53 | | - "description": "You can get it here: https://console.developers.google.com/", |
| 53 | + "description": "You can get it here: https:\/\/console.developers.google.com\/", |
54 | 54 | "env_variable": "api_key", |
55 | 55 | "default_value": "", |
56 | 56 | "user_viewable": true, |
|
60 | 60 | }, |
61 | 61 | { |
62 | 62 | "name": "Spotify Client ID", |
63 | | - "description": "You can get it here: https://developer.spotify.com/dashboard/applications", |
| 63 | + "description": "You can get it here: https:\/\/developer.spotify.com\/dashboard\/applications", |
64 | 64 | "env_variable": "client_id", |
65 | 65 | "default_value": "", |
66 | 66 | "user_viewable": true, |
|
70 | 70 | }, |
71 | 71 | { |
72 | 72 | "name": "Spotify Client Secret", |
73 | | - "description": "You can get it here: https://developer.spotify.com/dashboard/applications", |
| 73 | + "description": "You can get it here: https:\/\/developer.spotify.com\/dashboard\/applications", |
74 | 74 | "env_variable": "client_secret", |
75 | 75 | "default_value": "", |
76 | 76 | "user_viewable": true, |
|
0 commit comments