Compare commits

...

13 Commits

Author SHA1 Message Date
Senna
efb02c1c5d
Merge a917e207fe into 7d580cedb8 2024-04-17 19:08:01 +02:00
Senna
a917e207fe
Update README.md 2024-04-17 19:07:50 +02:00
Senna
b470715504
Merge branch 'pelican-eggs:master' into new-pterodactyl-discord-bot 2024-04-17 18:59:00 +02:00
Poseidon
7a52cea0f0
Update egg-python-pterodactyl-discord-bot.json
I deleted unnecessary code
2024-04-10 19:39:14 +02:00
Poseidon
365e009f2c
Update README.md 2024-04-10 19:12:59 +02:00
Poseidon
8b9476caeb
Update README.md
Fixed that the README is alphabetically ordered
2024-04-10 17:28:22 +02:00
Poseidon
f19417a40f
Update egg-python-pterodactyl-discord-bot.json
I added to the installation script that dependencies are automatically installed.
2024-04-10 17:27:07 +02:00
Poseidon
a4abfb17a5
Update main README.md
I added the bot/egg to the main README.md
2024-04-10 12:13:47 +02:00
Poseidon
c7991dc32c
Create README.md 2024-04-10 12:09:23 +02:00
Poseidon
959e1d8c3b
Egg for my Python Pterodacyl Discord Bot 2024-04-10 11:45:06 +02:00
Poseidon
ed8218c8cf
Create .env 2024-04-08 15:22:03 +02:00
Poseidon
13fc8cde6f
Create bot.py 2024-04-08 15:21:31 +02:00
Poseidon
fab32dcdf6
Create start.py 2024-04-08 15:20:33 +02:00
4 changed files with 90 additions and 0 deletions

View File

@ -39,6 +39,7 @@ 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)

View File

@ -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.
- [Poseidon](https://github.com/Poseidon281) - Customizations for this Discord bot egg and the making of the [Bot](https://github.com/Poseidon281/Pterodactyl-Discord-Bot).

View File

@ -0,0 +1,48 @@
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"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,
"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": "\/usr\/local\/bin\/python \/home\/container\/{{START_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\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"
}
},
"variables": [
{
"name": "App 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"
}
]
}

View File

@ -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)