2020-02-28 02:04:03 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
2022-09-08 09:39:16 +08:00
"version" : "PTDL_v2" ,
"update_url" : null
2020-02-28 02:04:03 +08:00
} ,
2022-09-08 22:59:55 +08:00
"exported_at" : "2022-09-08T16:55:56+02:00" ,
2020-02-28 02:04:03 +08:00
"name" : "PhantomBot" ,
"author" : "mail@wuffy.eu" ,
"description" : "PhantomBot is an actively developed open source interactive Twitch bot with a vibrant community that provides entertainment and moderation for your channel, allowing you to focus on what matters the most to you - your game and your viewers." ,
2020-12-17 01:22:38 +08:00
"features" : null ,
2022-09-08 09:39:16 +08:00
"docker_images" : {
2022-09-08 22:59:55 +08:00
"ghcr.io\/parkervcp\/yolks:java_11" : "ghcr.io\/parkervcp\/yolks:java_11"
2022-09-08 09:39:16 +08:00
} ,
"file_denylist" : [ ] ,
2020-03-03 09:52:09 +08:00
"startup" : "java --add-opens java.base\/java.lang=ALL-UNNAMED -Djava.security.policy=config\/security -Dinteractive -Xms1m -Dfile.encoding=UTF-8 -jar PhantomBot.jar" ,
2020-02-28 02:04:03 +08:00
"config" : {
2022-09-08 09:39:16 +08:00
"files" : "{\r\n \"config\/botlogin.txt\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"baseport\": \"{{server.build.default.port}}\",\r\n \"channel\": \"{{server.build.env.CHANNEL_NAME}}\",\r\n \"owner\": \"{{server.build.env.CHANNEL_OWNER}}\",\r\n \"paneluser\": \"{{server.build.env.WEBPANEL_USERNAME}}\",\r\n \"panelpassword\": \"{{server.build.env.WEBPANEL_PASSWORD}}\",\r\n \"user\": \"{{server.build.env.BOT_TWITCH_USERNAME}}\",\r\n \"youtubekey\": \"{{server.build.env.YOUTUBE_API_KEY}}\",\r\n \"discord_token\": \"{{server.build.env.DISCORD_BOT_TOKEN}}\"\r\n }\r\n }\r\n}" ,
2022-09-08 22:59:55 +08:00
"startup" : "{\r\n \"done\": \"Connecting to Twitch WS-IRC Server\"\r\n}" ,
"logs" : "{}" ,
2020-03-03 09:43:07 +08:00
"stop" : "exit"
2020-02-28 02:04:03 +08:00
} ,
"scripts" : {
"installation" : {
2022-09-08 09:39:16 +08:00
"script" : "#!\/bin\/bash\r\n# PhantomBot Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt -y --no-install-recommends install curl wget ca-certificates unzip\r\n\r\ncd \/tmp\r\n\r\n# Fetching latest github release\r\nif [ -z \"${RELEASE_VERSION}\" ] || [ \"${RELEASE_VERSION}\" == \"master\" ]; then\r\n echo -e \"Using latest Github Master version\"\r\n DOWNLOAD_URL=https:\/\/raw.githubusercontent.com\/PhantomBot\/nightly-build\/master\/PhantomBot-nightly-lin.zip\r\nelse\r\n if [ -z \"${RELEASE_VERSION}\" ] || [ \"${RELEASE_VERSION}\" == \"latest\" ]; then\r\n echo -e \"Using latest release version\"\r\n RELEASE_VERSION=$(curl -s \"https:\/\/api.github.com\/repos\/PhantomBot\/PhantomBot\/releases\/latest\" | grep -e '\"tag_name\"' | sed -E 's\/.*\"([^\"]+)\".*\/\\1\/' | sed 's\/^.\/\/')\r\n fi\r\n DOWNLOAD_URL=https:\/\/github.com\/PhantomBot\/PhantomBot\/releases\/download\/v${RELEASE_VERSION}\/PhantomBot-${RELEASE_VERSION}-lin.zip\r\n echo -e \"${DOWNLOAD_URL}\"\r\nfi\r\n\r\n# Download files\r\ncd \/mnt\/server\r\nwget ${DOWNLOAD_URL}\r\nunzip -o PhantomBot-*.zip\r\n\r\n# Move unzipped files into the server folder\r\ncp -f -r .\/PhantomBot-*\/* \/mnt\/server\/\r\n\r\n# Creating default config\r\nif [ ! -f \/mnt\/server\/config\/botlogin.txt ]; then\r\n echo -e \"Creating config\/botlogin.txt\"\r\n cat << EOF > \/mnt\/server\/config\/botlogin.txt\r\n #PhantomBot Configuration File\r\n #\r\n # Here is a list wiht all config values:\r\n # https:\/\/community.phantom.bot\/t\/settings-for-botlogin-txt\/78\r\n #\r\n apioauth=\r\n baseport=\r\n channel=\r\n oauth=\r\n owner=\r\n panelpassword=\r\n paneluser=\r\n user=\r\n youtubekey=\r\n discord_token=\r\nEOF\r\nfi" ,
2020-12-17 01:22:38 +08:00
"container" : "debian:buster-slim" ,
2020-02-28 02:04:03 +08:00
"entrypoint" : "bash"
}
} ,
"variables" : [
{
"name" : "Version" ,
2020-04-22 21:13:27 +08:00
"description" : "latest = Latest Stable\r\nmaster = latest Github" ,
2020-02-28 02:04:03 +08:00
"env_variable" : "RELEASE_VERSION" ,
"default_value" : "latest" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "required|string|max:9" ,
"field_type" : "text"
2020-02-28 02:04:03 +08:00
} ,
{
"name" : "Twitch Channel Name" ,
2020-12-17 01:22:38 +08:00
"description" : "Enter the Twitch channel name where the bot will connect to" ,
2020-02-28 02:04:03 +08:00
"env_variable" : "CHANNEL_NAME" ,
"default_value" : "" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "required|string|max:26" ,
"field_type" : "text"
2020-02-28 02:04:03 +08:00
} ,
{
"name" : "Channel Owner" ,
"description" : "" ,
"env_variable" : "CHANNEL_OWNER" ,
"default_value" : "" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "required|string|max:26" ,
"field_type" : "text"
2020-02-28 02:04:03 +08:00
} ,
{
"name" : "Bot Twitch Username" ,
"description" : "Please enter the bot's Twitch username" ,
"env_variable" : "BOT_TWITCH_USERNAME" ,
"default_value" : "" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "required|string|max:26" ,
"field_type" : "text"
2020-02-28 02:04:03 +08:00
} ,
{
"name" : "Webpanel Username" ,
"description" : "Please enter a custom username for the web panel" ,
"env_variable" : "WEBPANEL_USERNAME" ,
"default_value" : "" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "required|string|max:64" ,
"field_type" : "text"
2020-02-28 02:04:03 +08:00
} ,
{
"name" : "Webpanel Password" ,
"description" : "Please enter a custom password for the web panel" ,
"env_variable" : "WEBPANEL_PASSWORD" ,
"default_value" : "" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "required|string|max:2000" ,
"field_type" : "text"
2020-02-29 02:27:50 +08:00
} ,
{
"name" : "Youtube API Key" ,
2022-09-08 09:39:16 +08:00
"description" : "https:\/\/phantombot.dev\/guides\/#guide=content\/integrations\/youtubesetup" ,
2020-02-29 02:27:50 +08:00
"env_variable" : "YOUTUBE_API_KEY" ,
"default_value" : "" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "max:128" ,
"field_type" : "text"
2020-02-29 02:27:50 +08:00
} ,
{
"name" : "Discord Bot Token" ,
2022-09-08 09:39:16 +08:00
"description" : "https:\/\/phantombot.dev\/guides\/#guide=content\/integrations\/discordintegrationsetup" ,
2020-02-29 02:27:50 +08:00
"env_variable" : "DISCORD_BOT_TOKEN" ,
"default_value" : "" ,
2020-12-17 01:22:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2022-09-08 09:39:16 +08:00
"rules" : "max:128" ,
"field_type" : "text"
2020-02-28 02:04:03 +08:00
}
]
2021-01-21 18:43:29 +08:00
}