From fab32dcdf68c9e16fb46051d1f9387d29b06b52f Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:20:33 +0200 Subject: [PATCH 01/11] Create start.py --- bots/discord/PterodiscordBot/start.py | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bots/discord/PterodiscordBot/start.py diff --git a/bots/discord/PterodiscordBot/start.py b/bots/discord/PterodiscordBot/start.py new file mode 100644 index 00000000..af577049 --- /dev/null +++ b/bots/discord/PterodiscordBot/start.py @@ -0,0 +1,32 @@ +import subprocess +import asyncio + +while True: + try: + import discord + from dotenv import load_dotenv + from pydactyl import PterodactylClient + import pytz + except ImportError as e: + if "discord" in str(e): + print("Module discord is niet gevonden en word nu geinstalleerd") + asyncio.sleep(5) + subprocess.run(["pip", "install", "-U", "py-cord[voice]"]) + elif "dotenv" in str(e): + print("Module python-dotenv has not been found and is installing now") + asyncio.sleep(5) + subprocess.run(["pip", "install", "python-dotenv"]) + elif "pydactyl" in str(e): + print("Module pydactyl has not been found and is installing now") + asyncio.sleep(5) + subprocess.run(["pip", "install", "py-dactyl"]) + elif "pytz" in str(e): + print("Module pytz has not been found and is installing now") + asyncio.sleep(5) + subprocess.run(["pip", "install", "pytz"]) + else: + print(f"Unknown Importerror: {e}") + break + else: + subprocess.run(["python", "bot.py"]) + break From 13fc8cde6f55b848eda0e5db5b5c2f51fcec7182 Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:21:31 +0200 Subject: [PATCH 02/11] Create bot.py --- bots/discord/PterodiscordBot/bot.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 bots/discord/PterodiscordBot/bot.py diff --git a/bots/discord/PterodiscordBot/bot.py b/bots/discord/PterodiscordBot/bot.py new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/bots/discord/PterodiscordBot/bot.py @@ -0,0 +1 @@ + From ed8218c8cf13f30dd684b7d70eb5b3620e708e46 Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:22:03 +0200 Subject: [PATCH 03/11] Create .env --- bots/discord/PterodiscordBot/.env | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 bots/discord/PterodiscordBot/.env diff --git a/bots/discord/PterodiscordBot/.env b/bots/discord/PterodiscordBot/.env new file mode 100644 index 00000000..91d48e97 --- /dev/null +++ b/bots/discord/PterodiscordBot/.env @@ -0,0 +1,2 @@ +DISCORD_TOKEN="" +GUILD_ID= From 959e1d8c3b2fcc8c32e3641b3553846956bf8b9a Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:45:06 +0200 Subject: [PATCH 04/11] Egg for my Python Pterodacyl Discord Bot --- bots/discord/PterodiscordBot/.env | 2 - .../egg-python-pterodactyl-discord-bot.json | 68 +++++++++++++++++++ bots/discord/PterodiscordBot/bot.py | 1 - bots/discord/PterodiscordBot/start.py | 32 --------- 4 files changed, 68 insertions(+), 35 deletions(-) delete mode 100644 bots/discord/PterodiscordBot/.env create mode 100644 bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json delete mode 100644 bots/discord/PterodiscordBot/bot.py delete mode 100644 bots/discord/PterodiscordBot/start.py diff --git a/bots/discord/PterodiscordBot/.env b/bots/discord/PterodiscordBot/.env deleted file mode 100644 index 91d48e97..00000000 --- a/bots/discord/PterodiscordBot/.env +++ /dev/null @@ -1,2 +0,0 @@ -DISCORD_TOKEN="" -GUILD_ID= diff --git a/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json b/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json new file mode 100644 index 00000000..0f7503a0 --- /dev/null +++ b/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json @@ -0,0 +1,68 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v2", + "update_url": null + }, + "exported_at": "2024-04-10T11:43:27+02:00", + "name": "Python Pterodactyl Discord Bot", + "author": "parker@parkervcp.com", + "description": "A egg that installs a Pterodactyl Discord Bot\r\n\r\nThis egg is build on the python egg from parkervcp", + "features": null, + "docker_images": { + "Python 3.12": "ghcr.io\/parkervcp\/yolks:python_3.12", + "Python 3.11": "ghcr.io\/parkervcp\/yolks:python_3.11", + "Python 3.10": "ghcr.io\/parkervcp\/yolks:python_3.10", + "Python 3.9": "ghcr.io\/parkervcp\/yolks:python_3.9", + "Python 3.8": "ghcr.io\/parkervcp\/yolks:python_3.8", + "Python 3.7": "ghcr.io\/parkervcp\/yolks:python_3.7", + "Python 2.7": "ghcr.io\/parkervcp\/yolks:python_2.7" + }, + "file_denylist": [], + "startup": "if [[ -d .git ]] && [[ \"{{AUTO_UPDATE}}\" == \"1\" ]]; then git pull; fi; if [[ ! -z \"{{PY_PACKAGES}}\" ]]; then pip install -U --prefix .local {{PY_PACKAGES}}; fi; if [[ -f \/home\/container\/${REQUIREMENTS_FILE} ]]; then pip install -U --prefix .local -r ${REQUIREMENTS_FILE}; fi; \/usr\/local\/bin\/python \/home\/container\/{{PY_FILE}}", + "config": { + "files": "{}", + "startup": "{\r\n \"done\": \"change this part\"\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n# Pterodactyl Python Bot Install Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ libtool\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\necho \"Cloning files from GitHub...\"\r\ngit clone https:\/\/github.com\/Poseidon281\/Pterodactyl-Discord-Bot.git \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nif [ \"${USER_UPLOAD}\" == \"true\" ] || [ \"${USER_UPLOAD}\" == \"1\" ]; then\r\n echo -e \"Assuming user knows what they are doing. Have a good day.\"\r\n exit 0\r\nfi\r\n\r\nexport HOME=\/mnt\/server\r\n\r\necho \"Installing Python requirements into folder...\"\r\nif [[ ! -z ${PY_PACKAGES} ]]; then\r\n pip install -U --prefix .local ${PY_PACKAGES}\r\nfi\r\n\r\nif [ -f \/mnt\/server\/requirements.txt ]; then\r\n pip install -U --prefix .local -r \/mnt\/server\/requirements.txt\r\nfi\r\n\r\necho -e \"Installation complete.\"\r\nexit 0", + "container": "python:3.8-slim-bookworm", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "App py file", + "description": "The file that starts the App.", + "env_variable": "PY_FILE", + "default_value": "bot\/start.py", + "user_viewable": true, + "user_editable": true, + "rules": "required|string", + "field_type": "text" + }, + { + "name": "Additional Python packages", + "description": "Install additional python packages.\r\n\r\nUse spaces to separate", + "env_variable": "PY_PACKAGES", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "nullable|string", + "field_type": "text" + }, + { + "name": "User upload", + "description": "DO you want to upload all other files manualy?", + "env_variable": "USER_UPLOAD", + "default_value": "0", + "user_viewable": false, + "user_editable": false, + "rules": "required|boolean", + "field_type": "text" + } + ] +} \ No newline at end of file diff --git a/bots/discord/PterodiscordBot/bot.py b/bots/discord/PterodiscordBot/bot.py deleted file mode 100644 index 8b137891..00000000 --- a/bots/discord/PterodiscordBot/bot.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/bots/discord/PterodiscordBot/start.py b/bots/discord/PterodiscordBot/start.py deleted file mode 100644 index af577049..00000000 --- a/bots/discord/PterodiscordBot/start.py +++ /dev/null @@ -1,32 +0,0 @@ -import subprocess -import asyncio - -while True: - try: - import discord - from dotenv import load_dotenv - from pydactyl import PterodactylClient - import pytz - except ImportError as e: - if "discord" in str(e): - print("Module discord is niet gevonden en word nu geinstalleerd") - asyncio.sleep(5) - subprocess.run(["pip", "install", "-U", "py-cord[voice]"]) - elif "dotenv" in str(e): - print("Module python-dotenv has not been found and is installing now") - asyncio.sleep(5) - subprocess.run(["pip", "install", "python-dotenv"]) - elif "pydactyl" in str(e): - print("Module pydactyl has not been found and is installing now") - asyncio.sleep(5) - subprocess.run(["pip", "install", "py-dactyl"]) - elif "pytz" in str(e): - print("Module pytz has not been found and is installing now") - asyncio.sleep(5) - subprocess.run(["pip", "install", "pytz"]) - else: - print(f"Unknown Importerror: {e}") - break - else: - subprocess.run(["python", "bot.py"]) - break From c7991dc32c9747bf790c75a478f41d21359b6474 Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 10 Apr 2024 12:09:23 +0200 Subject: [PATCH 05/11] Create README.md --- bots/discord/PterodiscordBot/Python/README.md | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 bots/discord/PterodiscordBot/Python/README.md diff --git a/bots/discord/PterodiscordBot/Python/README.md b/bots/discord/PterodiscordBot/Python/README.md new file mode 100644 index 00000000..5afb75f3 --- /dev/null +++ b/bots/discord/PterodiscordBot/Python/README.md @@ -0,0 +1,37 @@ +# Pterodactyl Discord Bot Egg + +This is a Pterodactyl Discord Bot egg based on the Python egg from parkervcp. It installs and configures a Discord bot on a Pterodactyl-hosted server. + +## Credits +This egg is based on the [Python egg](https://github.com/parkervcp/eggs/tree/master/generic/python) by [parkervcp](https://github.com/parkervcp). Thanks to parkervcp for the original work and inspiration. + +## Installation +1. Import the egg to your Pterodactyl Panel +2. Make a new server with this egg +3. Start the server and all of the dependencies will be install automatically +4. Configure the bot/config.json. Make sure you set the bot token and the guild ID to your bot and Discord Guild +5. Have fun managing your Pterodactyl Panel from your Discord server + +## Instructions +- The settings file for the Discord bot should be configured according to the documentation of your specific bot. +- Manually upload any other required files to the server unless otherwise specified in the settings file. + +## Docker Images +This egg supports the following Python versions: +- Python 3.12 +- Python 3.11 +- Python 3.10 +- Python 3.9 +- Python 3.8 +- Python 3.7 +- Python 2.7 + +## Variables +- `PY_FILE`: The file that starts the Discord bot. Default value: `bot/start.py`. +- `PY_PACKAGES`: Additional Python packages to install. Use spaces to separate. +- `USER_UPLOAD`: Specify whether the user wants to manually upload all other files. Default value: `0`. + +## Authors +- parkervcp - Original author of the Python egg. +- Poseidon281 - Customizations for this Discord bot egg. + From a4abfb17a522b759697f015ee006ff6a6beb5fd0 Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 10 Apr 2024 12:13:47 +0200 Subject: [PATCH 06/11] Update main README.md I added the bot/egg to the main README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2ee2b061..2a82a18d 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Redbot](/bots/discord/redbot) Python * [Ree6](/bots/discord/ree6) Java * [SinusBot](/bots/discord/sinusbot) +* [PteroDiscord](/bots/discord/PterodiscordBot/Python) Python [Other](/bots/other) From f19417a40f562991f997f8694a198e6bc14bb038 Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:27:07 +0200 Subject: [PATCH 07/11] Update egg-python-pterodactyl-discord-bot.json I added to the installation script that dependencies are automatically installed. --- .../Python/egg-python-pterodactyl-discord-bot.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json b/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json index 0f7503a0..59f355d5 100644 --- a/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json +++ b/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2024-04-10T11:43:27+02:00", + "exported_at": "2024-04-10T17:24:46+02:00", "name": "Python Pterodactyl Discord Bot", "author": "parker@parkervcp.com", "description": "A egg that installs a Pterodactyl Discord Bot\r\n\r\nThis egg is build on the python egg from parkervcp", @@ -28,7 +28,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n# Pterodactyl Python Bot Install Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ libtool\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\necho \"Cloning files from GitHub...\"\r\ngit clone https:\/\/github.com\/Poseidon281\/Pterodactyl-Discord-Bot.git \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nif [ \"${USER_UPLOAD}\" == \"true\" ] || [ \"${USER_UPLOAD}\" == \"1\" ]; then\r\n echo -e \"Assuming user knows what they are doing. Have a good day.\"\r\n exit 0\r\nfi\r\n\r\nexport HOME=\/mnt\/server\r\n\r\necho \"Installing Python requirements into folder...\"\r\nif [[ ! -z ${PY_PACKAGES} ]]; then\r\n pip install -U --prefix .local ${PY_PACKAGES}\r\nfi\r\n\r\nif [ -f \/mnt\/server\/requirements.txt ]; then\r\n pip install -U --prefix .local -r \/mnt\/server\/requirements.txt\r\nfi\r\n\r\necho -e \"Installation complete.\"\r\nexit 0", + "script": "#!\/bin\/bash\r\n# Pterodactyl Python Bot Install Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ libtool\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\necho \"Installing Dependencies\"\r\npip install python-json-config\r\npip install py-dactyl\r\npip install pytz\r\npip install py-cord[voice]\r\n\r\necho \"Getting bot from GitHub...\"\r\ngit clone https:\/\/github.com\/Poseidon281\/Pterodactyl-Discord-Bot.git \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nif [ \"${USER_UPLOAD}\" == \"true\" ] || [ \"${USER_UPLOAD}\" == \"1\" ]; then\r\n echo -e \"Assuming user knows what they are doing. Have a good day.\"\r\n exit 0\r\nfi\r\n\r\nexport HOME=\/mnt\/server\r\n\r\necho \"Installing Python requirements into folder...\"\r\nif [[ ! -z ${PY_PACKAGES} ]]; then\r\n pip install -U --prefix .local ${PY_PACKAGES}\r\nfi\r\n\r\nif [ -f \/mnt\/server\/requirements.txt ]; then\r\n pip install -U --prefix .local -r \/mnt\/server\/requirements.txt\r\nfi\r\n\r\necho -e \"Installation complete.\"\r\nexit 0", "container": "python:3.8-slim-bookworm", "entrypoint": "bash" } @@ -56,7 +56,7 @@ }, { "name": "User upload", - "description": "DO you want to upload all other files manualy?", + "description": "Do you want to upload all other files manualy?", "env_variable": "USER_UPLOAD", "default_value": "0", "user_viewable": false, @@ -65,4 +65,4 @@ "field_type": "text" } ] -} \ No newline at end of file +} From 8b9476caeb3722a7fc291f21f059b7fbb25f9e3c Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:28:22 +0200 Subject: [PATCH 08/11] Update README.md Fixed that the README is alphabetically ordered --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a82a18d..e4ef3296 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Muse](/bots/discord/muse) Node JS * [parkertron](/bots/discord/parkertron) Golang * [pixel-bot](/bots/discord/pixelbot) Python +* [PteroDiscord](/bots/discord/PterodiscordBot/Python) Python * [Redbot](/bots/discord/redbot) Python * [Ree6](/bots/discord/ree6) Java * [SinusBot](/bots/discord/sinusbot) -* [PteroDiscord](/bots/discord/PterodiscordBot/Python) Python [Other](/bots/other) From 365e009f2c199705d3b7eb86df4ceee659747a3b Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:12:59 +0200 Subject: [PATCH 09/11] Update README.md --- bots/discord/PterodiscordBot/Python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/discord/PterodiscordBot/Python/README.md b/bots/discord/PterodiscordBot/Python/README.md index 5afb75f3..d7d0a88a 100644 --- a/bots/discord/PterodiscordBot/Python/README.md +++ b/bots/discord/PterodiscordBot/Python/README.md @@ -33,5 +33,5 @@ This egg supports the following Python versions: ## Authors - parkervcp - Original author of the Python egg. -- Poseidon281 - Customizations for this Discord bot egg. +- [Poseidon](https://github.com/Poseidon281) - Customizations for this Discord bot egg and the making of the [Bot](https://github.com/Poseidon281/Pterodactyl-Discord-Bot). From 7a52cea0f07736f923fdb7c34d8a22e42f8380dc Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:39:14 +0200 Subject: [PATCH 10/11] Update egg-python-pterodactyl-discord-bot.json I deleted unnecessary code --- .../egg-python-pterodactyl-discord-bot.json | 32 ++++--------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json b/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json index 59f355d5..c274a70e 100644 --- a/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json +++ b/bots/discord/PterodiscordBot/Python/egg-python-pterodactyl-discord-bot.json @@ -4,8 +4,8 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2024-04-10T17:24:46+02:00", - "name": "Python Pterodactyl Discord Bot", + "exported_at": "2024-04-10T19:38:51+02:00", + "name": "Python Pterodactyl Discord Bot 2.0", "author": "parker@parkervcp.com", "description": "A egg that installs a Pterodactyl Discord Bot\r\n\r\nThis egg is build on the python egg from parkervcp", "features": null, @@ -19,7 +19,7 @@ "Python 2.7": "ghcr.io\/parkervcp\/yolks:python_2.7" }, "file_denylist": [], - "startup": "if [[ -d .git ]] && [[ \"{{AUTO_UPDATE}}\" == \"1\" ]]; then git pull; fi; if [[ ! -z \"{{PY_PACKAGES}}\" ]]; then pip install -U --prefix .local {{PY_PACKAGES}}; fi; if [[ -f \/home\/container\/${REQUIREMENTS_FILE} ]]; then pip install -U --prefix .local -r ${REQUIREMENTS_FILE}; fi; \/usr\/local\/bin\/python \/home\/container\/{{PY_FILE}}", + "startup": "\/usr\/local\/bin\/python \/home\/container\/{{START_FILE}}", "config": { "files": "{}", "startup": "{\r\n \"done\": \"change this part\"\r\n}", @@ -28,7 +28,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n# Pterodactyl Python Bot Install Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ libtool\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\necho \"Installing Dependencies\"\r\npip install python-json-config\r\npip install py-dactyl\r\npip install pytz\r\npip install py-cord[voice]\r\n\r\necho \"Getting bot from GitHub...\"\r\ngit clone https:\/\/github.com\/Poseidon281\/Pterodactyl-Discord-Bot.git \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nif [ \"${USER_UPLOAD}\" == \"true\" ] || [ \"${USER_UPLOAD}\" == \"1\" ]; then\r\n echo -e \"Assuming user knows what they are doing. Have a good day.\"\r\n exit 0\r\nfi\r\n\r\nexport HOME=\/mnt\/server\r\n\r\necho \"Installing Python requirements into folder...\"\r\nif [[ ! -z ${PY_PACKAGES} ]]; then\r\n pip install -U --prefix .local ${PY_PACKAGES}\r\nfi\r\n\r\nif [ -f \/mnt\/server\/requirements.txt ]; then\r\n pip install -U --prefix .local -r \/mnt\/server\/requirements.txt\r\nfi\r\n\r\necho -e \"Installation complete.\"\r\nexit 0", + "script": "#!\/bin\/bash\r\n# Pterodactyl Python Bot Install Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y git curl jq file unzip make gcc g++ libtool\r\n\r\ncd \/mnt\/server\r\n\r\necho \"Getting bot from GitHub...\"\r\ngit clone https:\/\/github.com\/Poseidon281\/Pterodactyl-Discord-Bot.git \/mnt\/server\r\n\r\necho -e \"Installation complete.\"\r\nexit 0", "container": "python:3.8-slim-bookworm", "entrypoint": "bash" } @@ -36,33 +36,13 @@ "variables": [ { "name": "App py file", - "description": "The file that starts the App.", - "env_variable": "PY_FILE", + "description": "The file that you want to start the bot", + "env_variable": "START_FILE", "default_value": "bot\/start.py", "user_viewable": true, "user_editable": true, "rules": "required|string", "field_type": "text" - }, - { - "name": "Additional Python packages", - "description": "Install additional python packages.\r\n\r\nUse spaces to separate", - "env_variable": "PY_PACKAGES", - "default_value": "", - "user_viewable": true, - "user_editable": true, - "rules": "nullable|string", - "field_type": "text" - }, - { - "name": "User upload", - "description": "Do you want to upload all other files manualy?", - "env_variable": "USER_UPLOAD", - "default_value": "0", - "user_viewable": false, - "user_editable": false, - "rules": "required|boolean", - "field_type": "text" } ] } From a917e207fefa63b59ada475440fd3d48e37cd7ef Mon Sep 17 00:00:00 2001 From: Senna <62171904+Poseidon281@users.noreply.github.com> Date: Wed, 17 Apr 2024 19:07:50 +0200 Subject: [PATCH 11/11] Update README.md --- bots/discord/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bots/discord/README.md b/bots/discord/README.md index 4b8a8789..3c8486e0 100644 --- a/bots/discord/README.md +++ b/bots/discord/README.md @@ -53,6 +53,10 @@ The bot that runs as the pterodactyl `@Support Bot` No longer actively developed. Was used to test python services. +### [PterodiscordBot](https://github.com/Poseidon281/Pterodactyl-Discord-Bot/tree/main) +A Python Discord bot with which you can control your Pterodactyl Panel from Discord +Still being updated. BETA fase right now + ### [RedBot](redbot) [Cog-Creators/Red-DiscordBot](https://github.com/Cog-Creators/Red-DiscordBot)