diff --git a/README.md b/README.md index da514c9..b14a107 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ Locations are unlocked by completing achievements: ## 🌐 Web Interface -Access the web dashboard at `http://localhost:8080/`: +Access the web dashboard at `http://petz.rdx4.com/`: - **Player Profiles**: Complete stats, pet collections, and inventories - **Leaderboard**: Top players by level and achievements - **Locations Guide**: All areas with spawn information diff --git a/modules/core_commands.py b/modules/core_commands.py index 3f2d73b..c723d4b 100644 --- a/modules/core_commands.py +++ b/modules/core_commands.py @@ -19,7 +19,7 @@ class CoreCommands(BaseModule): async def cmd_help(self, channel, nickname): """Send help URL to prevent rate limiting""" - self.send_message(channel, f"{nickname}: Complete command reference available at: http://localhost:8080/help") + self.send_message(channel, f"{nickname}: Complete command reference available at: http://petz.rdx4.com/help") async def cmd_start(self, channel, nickname): """Start a new player""" diff --git a/modules/pet_management.py b/modules/pet_management.py index 0d68b4d..2e3a11b 100644 --- a/modules/pet_management.py +++ b/modules/pet_management.py @@ -60,7 +60,7 @@ class PetManagement(BaseModule): return # Send URL to player's profile page instead of PM spam - self.send_message(channel, f"{nickname}: View your complete pet collection at: http://localhost:8080/player/{nickname}") + self.send_message(channel, f"{nickname}: View your complete pet collection at: http://petz.rdx4.com/player/{nickname}") async def cmd_activate(self, channel, nickname, args): """Activate a pet for battle (PM only)""" diff --git a/webserver.py b/webserver.py index 8b02c03..e63d165 100644 --- a/webserver.py +++ b/webserver.py @@ -1453,6 +1453,7 @@ class PetBotWebServer: thread = Thread(target=self.run, daemon=True) thread.start() print(f"✅ Web server started at http://localhost:{self.port}") + print(f"🌐 Public access at: http://petz.rdx4.com/") return thread def run_standalone(): @@ -1469,11 +1470,18 @@ def run_standalone(): server = PetBotWebServer(database) print("🚀 Starting web server...") print("📝 Available routes:") - print(" http://localhost:8080/ - Game Hub") - print(" http://localhost:8080/help - Command Help") - print(" http://localhost:8080/players - Player List") - print(" http://localhost:8080/leaderboard - Leaderboard") - print(" http://localhost:8080/locations - Locations") + print(" http://localhost:8080/ - Game Hub (local)") + print(" http://localhost:8080/help - Command Help (local)") + print(" http://localhost:8080/players - Player List (local)") + print(" http://localhost:8080/leaderboard - Leaderboard (local)") + print(" http://localhost:8080/locations - Locations (local)") + print("") + print("🌐 Public URLs:") + print(" http://petz.rdx4.com/ - Game Hub") + print(" http://petz.rdx4.com/help - Command Help") + print(" http://petz.rdx4.com/players - Player List") + print(" http://petz.rdx4.com/leaderboard - Leaderboard") + print(" http://petz.rdx4.com/locations - Locations") print("") print("Press Ctrl+C to stop")