2018-07-12 04:41:33 +08:00
|
|
|
{
|
|
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
|
|
"meta": {
|
|
|
|
"version": "PTDL_v1"
|
|
|
|
},
|
2019-06-23 22:01:47 +08:00
|
|
|
"exported_at": "2019-06-23T10:00:12-04:00",
|
2018-07-12 04:41:33 +08:00
|
|
|
"name": "ATLBot",
|
|
|
|
"author": "jfeldt19@gmail.com",
|
|
|
|
"description": "ATLbot in ptero\r\n\r\nhttps:\/\/github.com\/ATLauncher\/discord-bot\/",
|
2018-11-25 08:13:32 +08:00
|
|
|
"image": "quay.io\/parkervcp\/pterodactyl-images:alpine_nodejs-10",
|
2018-07-12 04:41:33 +08:00
|
|
|
"startup": "npm run start",
|
|
|
|
"config": {
|
2019-06-23 22:01:47 +08:00
|
|
|
"files": "{\r\n \"config\/local.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"discord.client_token\": \"{{server.build.env.CLIENT_TOKEN}}\",\r\n \"logging.level\": \"debug\"\r\n }\r\n }\r\n}",
|
|
|
|
"startup": "{\r\n \"done\": \"Bot started\"\r\n}",
|
2018-07-12 04:41:33 +08:00
|
|
|
"logs": "{\r\n \"custom\": true,\r\n \"location\": \"logs\/latest.log\"\r\n}",
|
|
|
|
"stop": "^C"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"installation": {
|
2019-06-23 22:01:47 +08:00
|
|
|
"script": "apk add --no-cache openssl git\r\n\r\ncd \/mnt\/server\r\nif [[ -d .git\/ ]]; then\r\n git pull\r\nelse\r\n git clone https:\/\/github.com\/ATLauncher\/discord-bot.git . \r\nfi\r\n\r\necho '{}' > config\/local.json\r\n\r\nnpm install --production\r\n\r\nnpm run build\r\n\r\nrm Dockerfile\r\nrm CONTRIBUTING.md\r\nrm README.md\r\nrm \/config\/.gitignore\r\nrm CODE_OF_CONDUCT.md",
|
2018-11-25 08:13:32 +08:00
|
|
|
"container": "node:10-alpine",
|
2018-07-12 04:41:33 +08:00
|
|
|
"entrypoint": "ash"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"variables": [
|
|
|
|
{
|
|
|
|
"name": "client_token",
|
|
|
|
"description": "Get a discord token at https:\/\/discordapp.com\/developers\/",
|
|
|
|
"env_variable": "CLIENT_TOKEN",
|
|
|
|
"default_value": "get_your_own_token_from_discord_",
|
|
|
|
"user_viewable": 1,
|
|
|
|
"user_editable": 1,
|
|
|
|
"rules": "required|string|max:75"
|
2019-06-23 22:01:47 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Node Environment",
|
|
|
|
"description": "The node environment variable.\r\n\r\nNeeds to stay at \"development\" to log to console.",
|
|
|
|
"env_variable": "NODE_ENV",
|
|
|
|
"default_value": "development",
|
|
|
|
"user_viewable": 1,
|
|
|
|
"user_editable": 0,
|
|
|
|
"rules": "required|string|max:20"
|
2018-07-12 04:41:33 +08:00
|
|
|
}
|
|
|
|
]
|
2019-06-23 22:01:47 +08:00
|
|
|
}
|