mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-12 04:27:24 +08:00
54 lines
2.9 KiB
JSON
54 lines
2.9 KiB
JSON
|
{
|
||
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||
|
"meta": {
|
||
|
"version": "PTDL_v1"
|
||
|
},
|
||
|
"exported_at": "2019-05-06T14:52:22-04:00",
|
||
|
"name": "JMusicBot",
|
||
|
"author": "parker@parkervcp.com",
|
||
|
"description": "A Discord music bot that's easy to set up and run yourself!",
|
||
|
"image": "quay.io\/parkervcp\/pterodactyl-images:debian_openjdk-8-jre",
|
||
|
"startup": "java -Djavax.accessibility.assistive_technologies=\" \" -jar JMusicBot.jar",
|
||
|
"config": {
|
||
|
"files": "{\r\n \"config.txt\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"token =\": \"token = \\\"{{env.BOT_TOKEN}}\\\"\",\r\n \"prefix =\": \"prefix = \\\"{{env.BOT_PREFIX}}\\\"\",\r\n \"owner =\": \"owner = \\\"{{env.BOT_OWNER}}\\\"\"\r\n }\r\n }\r\n}",
|
||
|
"startup": "{\r\n \"done\": \"\"\r\n}",
|
||
|
"logs": "{}",
|
||
|
"stop": "^C"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"installation": {
|
||
|
"script": "#!\/bin\/ash\r\napk add --no-cache curl\r\n\r\nget_latest_release() {\r\n curl --silent \"https:\/\/api.github.com\/repos\/$1\/releases\/latest\" |\r\n grep '\"tag_name\":' |\r\n sed -E 's\/.*\"([^\"]+)\".*\/\\1\/'\r\n}\r\n\r\nPACKAGE=\"jagrosh\/MusicBot\"\r\nVERSION=`get_latest_release \"${PACKAGE}\"`\r\necho \"Latest version=${VERSION}\"\r\n\r\ncd \/mnt\/server\r\n\r\ncurl -Lo JMusicBot.jar https:\/\/github.com\/jagrosh\/MusicBot\/releases\/download\/${VERSION}\/JMusicBot-${VERSION}.jar\r\n\r\nif [ -f config.txt ]; then\r\n echo -e \"config found\"\r\nelse\r\n echo -e \"config not found getting default\"\r\n curl -Lo config.txt https:\/\/github.com\/jagrosh\/MusicBot\/releases\/download\/${VERSION}\/config.txt\r\nfi\r\n\r\necho \"Job's Done\"",
|
||
|
"container": "alpine:3.9",
|
||
|
"entrypoint": "ash"
|
||
|
}
|
||
|
},
|
||
|
"variables": [
|
||
|
{
|
||
|
"name": "Discord Bot Token",
|
||
|
"description": "The token for the discord bot.\r\n\r\nhttps:\/\/discordapp.com\/developers\/applications\/",
|
||
|
"env_variable": "BOT_TOKEN",
|
||
|
"default_value": "You need to get a token",
|
||
|
"user_viewable": 1,
|
||
|
"user_editable": 1,
|
||
|
"rules": "required|string|max:64"
|
||
|
},
|
||
|
{
|
||
|
"name": "Bot Prefix",
|
||
|
"description": "Thew prefix for the bot.\r\n\r\nDefault is it @mention the bot.",
|
||
|
"env_variable": "BOT_PREFIX",
|
||
|
"default_value": "@mention",
|
||
|
"user_viewable": 1,
|
||
|
"user_editable": 1,
|
||
|
"rules": "required|string|max:20"
|
||
|
},
|
||
|
{
|
||
|
"name": "Bot Owner ID",
|
||
|
"description": "This is the user ID of the bot owner.",
|
||
|
"env_variable": "BOT_OWNER",
|
||
|
"default_value": "changethistoyourdiscordid",
|
||
|
"user_viewable": 1,
|
||
|
"user_editable": 1,
|
||
|
"rules": "required|string|max:32"
|
||
|
}
|
||
|
]
|
||
|
}
|