mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-05-24 16:25:19 +00:00
added prefix command to check usage of prefixes and list free prefixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -10,3 +10,4 @@ pyephem>=4.1.4
|
||||
geopy>=2.3.0
|
||||
maidenhead>=1.4.0
|
||||
pytz>=2023.3
|
||||
aiohttp>=3.8.0
|
||||
|
||||
Reference in New Issue
Block a user