fixed egg
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
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?
|
||||
|
||||
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": {
|
||||
"version": "PTDL_v2",
|
||||
"version": "PTDL_v1",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2026-06-17T00:00:00+00:00",
|
||||
@@ -11,13 +11,15 @@
|
||||
"eula"
|
||||
],
|
||||
"docker_images": {
|
||||
"ghcr.io/pterodactyl/games:python3.13": "ghcr.io/pterodactyl/games:python3.13"
|
||||
"python:3.11": "python:3.11"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "{{STARTUP_CMD}}",
|
||||
"startup": "python bot.py",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\n \"done\": \"started\"\n}",
|
||||
"files": {},
|
||||
"startup": {
|
||||
"done": "started"
|
||||
},
|
||||
"log": {
|
||||
"custom": false,
|
||||
"location": "logs/latest.log"
|
||||
@@ -26,50 +28,50 @@
|
||||
},
|
||||
"scripts": {
|
||||
"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",
|
||||
"container": "ghcr.io/pterodactyl/games:python3.13",
|
||||
"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": "python:3.11",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"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",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "required|string|max:255",
|
||||
"rules": "required|string",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Database Host",
|
||||
"description": "MariaDB/MySQL database hostname (default: localhost)",
|
||||
"description": "MariaDB/MySQL hostname",
|
||||
"env_variable": "DB_HOST",
|
||||
"default_value": "localhost",
|
||||
"user_viewable": true,
|
||||
"user_editable": true,
|
||||
"rules": "required|string|max:255",
|
||||
"rules": "required|string",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Database User",
|
||||
"description": "MariaDB/MySQL database username",
|
||||
"description": "MariaDB/MySQL username",
|
||||
"env_variable": "DB_USER",
|
||||
"default_value": "root",
|
||||
"user_viewable": true,
|
||||
"user_editable": true,
|
||||
"rules": "required|string|max:255",
|
||||
"rules": "required|string",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Database Password",
|
||||
"description": "MariaDB/MySQL database password",
|
||||
"description": "MariaDB/MySQL password",
|
||||
"env_variable": "DB_PASSWORD",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|max:255",
|
||||
"rules": "string",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
@@ -79,16 +81,6 @@
|
||||
"default_value": "rp_bot",
|
||||
"user_viewable": 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",
|
||||
"field_type": "text"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user