added prefix command to check usage of prefixes and list free prefixes

This commit is contained in:
agessaman
2025-09-07 15:26:01 -07:00
parent cb6a319b1b
commit 41205fb2f4
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -252,7 +252,7 @@ class PrefixCommand(BaseCommand):
if not free_prefixes:
return "❌ No free prefixes found (all 254 valid prefixes are in use)"
response = f"🆓 **Available Prefixes** ({len(free_prefixes)} shown):\n"
response = f"🆓 Available Prefixes ({len(free_prefixes)} shown):\n"
# Format as a grid for better readability
for i, prefix in enumerate(free_prefixes, 1):
@@ -266,7 +266,7 @@ class PrefixCommand(BaseCommand):
if len(free_prefixes) % 5 != 0:
response += "\n"
response += f"\n💡 Use 'prefix <XX>' to check if a prefix is available"
response += f"\n💡 Generate a key for a specific prefix at https://gessaman.com/mc-keygen"
return response
+1
View File
@@ -10,3 +10,4 @@ pyephem>=4.1.4
geopy>=2.3.0
maidenhead>=1.4.0
pytz>=2023.3
aiohttp>=3.8.0