Update all web links to use petz.rdx4.com domain
🌐 Updated URLs: - \!help command now points to http://petz.rdx4.com/help - \!pets command now points to http://petz.rdx4.com/player/{nickname} - README.md updated to reference petz.rdx4.com - Web server startup messages show both local and public URLs 🔧 Changes: - modules/core_commands.py: Updated help URL - modules/pet_management.py: Updated player profile URL - webserver.py: Added public URL display in startup messages - README.md: Updated web interface section Users will now receive public URLs that work externally instead of localhost URLs. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
db144da24f
commit
3f3b66bfaa
4 changed files with 16 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"""
|
||||
|
|
|
|||
|
|
@ -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)"""
|
||||
|
|
|
|||
18
webserver.py
18
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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue