fixed egg
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
This guide will help you deploy the OC Bot using Pterodactyl Panel.
|
This guide will help you deploy the OC Bot using Pterodactyl Panel.
|
||||||
|
|
||||||
|
**Compatible with:**
|
||||||
|
- Pterodactyl Panel v1.13.0+
|
||||||
|
- Wings v1.12.3+
|
||||||
|
|
||||||
## What is an Egg?
|
## What is an Egg?
|
||||||
|
|
||||||
A Pterodactyl "egg" is a JSON configuration file that defines how your application should be installed, configured, and run within a Pterodactyl Panel server.
|
A Pterodactyl "egg" is a JSON configuration file that defines how your application should be installed, configured, and run within a Pterodactyl Panel server.
|
||||||
|
|||||||
54
PTERODACTYLL/README.md
Normal file
54
PTERODACTYLL/README.md
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
# Pterodactyl Egg Files
|
||||||
|
|
||||||
|
This folder contains the Pterodactyl Panel egg configuration for the OC Bot.
|
||||||
|
|
||||||
|
## Files
|
||||||
|
|
||||||
|
- **egg-oc-bot.json** - The main egg file (compatible with Panel v1.13.0+ and Wings v1.12.3+)
|
||||||
|
- **PTERODACTYL_DEPLOYMENT.md** - Full deployment guide
|
||||||
|
|
||||||
|
## Quick Setup
|
||||||
|
|
||||||
|
### In Pterodactyl Admin Panel:
|
||||||
|
1. Navigate to **Admin** → **Nests & Eggs**
|
||||||
|
2. Click **Import Egg**
|
||||||
|
3. Copy the entire contents of `egg-oc-bot.json`
|
||||||
|
4. Paste and click **Import**
|
||||||
|
|
||||||
|
### When Creating a Server:
|
||||||
|
1. Select the imported **OC Bot** egg
|
||||||
|
2. Configure these variables:
|
||||||
|
- **Discord Bot Token** - From [Discord Developer Portal](https://discord.com/developers/applications)
|
||||||
|
- **Database Host** - Your MariaDB server (usually `localhost` or database container name)
|
||||||
|
- **Database User** - Database username
|
||||||
|
- **Database Password** - Database password
|
||||||
|
- **Database Name** - Database name
|
||||||
|
|
||||||
|
### Database Setup:
|
||||||
|
Before starting the bot, ensure your MariaDB database exists:
|
||||||
|
```sql
|
||||||
|
CREATE DATABASE rp_bot;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### 500 Server Error on Import
|
||||||
|
- Ensure you have the latest Panel and Wings versions
|
||||||
|
- This egg is compatible with Panel v1.13.0+ and Wings v1.12.3+
|
||||||
|
- Check your panel logs for detailed error messages
|
||||||
|
|
||||||
|
### Bot Won't Start
|
||||||
|
- Verify Discord token is correct and active
|
||||||
|
- Check database connection settings
|
||||||
|
- Ensure Message Content Intent is enabled in Discord Developer Portal
|
||||||
|
- Review server console logs
|
||||||
|
|
||||||
|
### Database Connection Failed
|
||||||
|
- Ensure database server is running
|
||||||
|
- Verify credentials are correct
|
||||||
|
- Check that the database exists: `SHOW DATABASES;`
|
||||||
|
- If using Docker, use the container service name instead of localhost
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Coded by Ball Studios 🎨**
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"version": "PTDL_v2",
|
"version": "PTDL_v1",
|
||||||
"update_url": null
|
"update_url": null
|
||||||
},
|
},
|
||||||
"exported_at": "2026-06-17T00:00:00+00:00",
|
"exported_at": "2026-06-17T00:00:00+00:00",
|
||||||
@@ -11,13 +11,15 @@
|
|||||||
"eula"
|
"eula"
|
||||||
],
|
],
|
||||||
"docker_images": {
|
"docker_images": {
|
||||||
"ghcr.io/pterodactyl/games:python3.13": "ghcr.io/pterodactyl/games:python3.13"
|
"python:3.11": "python:3.11"
|
||||||
},
|
},
|
||||||
"file_denylist": [],
|
"file_denylist": [],
|
||||||
"startup": "{{STARTUP_CMD}}",
|
"startup": "python bot.py",
|
||||||
"config": {
|
"config": {
|
||||||
"files": "{}",
|
"files": {},
|
||||||
"startup": "{\n \"done\": \"started\"\n}",
|
"startup": {
|
||||||
|
"done": "started"
|
||||||
|
},
|
||||||
"log": {
|
"log": {
|
||||||
"custom": false,
|
"custom": false,
|
||||||
"location": "logs/latest.log"
|
"location": "logs/latest.log"
|
||||||
@@ -26,50 +28,50 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"installation": {
|
"installation": {
|
||||||
"script": "#!/bin/bash\nset -e\n\necho \"OC Bot - Installation Starting\"\necho \"Installing Python dependencies...\"\n\npip install --upgrade pip\npip install -r requirements.txt\n\necho \"Installation Complete!\"\necho \"Make sure to configure your .env file with:\"\necho \" - DISCORD_TOKEN\"\necho \" - DB_HOST\"\necho \" - DB_USER\"\necho \" - DB_PASSWORD\"\necho \" - DB_NAME\"\n",
|
"script": "#!/bin/bash\nset -e\necho 'OC Bot - Installation Starting'\necho 'Installing system packages...'\napt-get update\napt-get install -y git\necho 'Installing Python dependencies...'\npip install --no-cache-dir --upgrade pip\npip install --no-cache-dir -r requirements.txt\necho 'Installation Complete!'\n",
|
||||||
"container": "ghcr.io/pterodactyl/games:python3.13",
|
"container": "python:3.11",
|
||||||
"entrypoint": "bash"
|
"entrypoint": "bash"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "Discord Bot Token",
|
"name": "Discord Bot Token",
|
||||||
"description": "Your Discord bot token from the Developer Portal (https://discord.com/developers/applications)",
|
"description": "Your Discord bot token from the Developer Portal",
|
||||||
"env_variable": "DISCORD_TOKEN",
|
"env_variable": "DISCORD_TOKEN",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"user_viewable": false,
|
"user_viewable": false,
|
||||||
"user_editable": true,
|
"user_editable": true,
|
||||||
"rules": "required|string|max:255",
|
"rules": "required|string",
|
||||||
"field_type": "text"
|
"field_type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Database Host",
|
"name": "Database Host",
|
||||||
"description": "MariaDB/MySQL database hostname (default: localhost)",
|
"description": "MariaDB/MySQL hostname",
|
||||||
"env_variable": "DB_HOST",
|
"env_variable": "DB_HOST",
|
||||||
"default_value": "localhost",
|
"default_value": "localhost",
|
||||||
"user_viewable": true,
|
"user_viewable": true,
|
||||||
"user_editable": true,
|
"user_editable": true,
|
||||||
"rules": "required|string|max:255",
|
"rules": "required|string",
|
||||||
"field_type": "text"
|
"field_type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Database User",
|
"name": "Database User",
|
||||||
"description": "MariaDB/MySQL database username",
|
"description": "MariaDB/MySQL username",
|
||||||
"env_variable": "DB_USER",
|
"env_variable": "DB_USER",
|
||||||
"default_value": "root",
|
"default_value": "root",
|
||||||
"user_viewable": true,
|
"user_viewable": true,
|
||||||
"user_editable": true,
|
"user_editable": true,
|
||||||
"rules": "required|string|max:255",
|
"rules": "required|string",
|
||||||
"field_type": "text"
|
"field_type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Database Password",
|
"name": "Database Password",
|
||||||
"description": "MariaDB/MySQL database password",
|
"description": "MariaDB/MySQL password",
|
||||||
"env_variable": "DB_PASSWORD",
|
"env_variable": "DB_PASSWORD",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"user_viewable": false,
|
"user_viewable": false,
|
||||||
"user_editable": true,
|
"user_editable": true,
|
||||||
"rules": "string|max:255",
|
"rules": "string",
|
||||||
"field_type": "text"
|
"field_type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -79,16 +81,6 @@
|
|||||||
"default_value": "rp_bot",
|
"default_value": "rp_bot",
|
||||||
"user_viewable": true,
|
"user_viewable": true,
|
||||||
"user_editable": true,
|
"user_editable": true,
|
||||||
"rules": "required|string|max:255",
|
|
||||||
"field_type": "text"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Startup Command",
|
|
||||||
"description": "Command to start the bot",
|
|
||||||
"env_variable": "STARTUP_CMD",
|
|
||||||
"default_value": "python bot.py",
|
|
||||||
"user_viewable": true,
|
|
||||||
"user_editable": false,
|
|
||||||
"rules": "required|string",
|
"rules": "required|string",
|
||||||
"field_type": "text"
|
"field_type": "text"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user