Implemented staus check and refactored node endpoints

This commit is contained in:
Logan Cusano
2025-05-25 21:41:56 -04:00
parent 5e6ee765d8
commit 5b90ebb8f1
3 changed files with 132 additions and 39 deletions

View File

@@ -7,12 +7,6 @@ from internal.db_wrappers import DiscordIdDbController
bot_bp = Blueprint('bot', __name__)
@bot_bp.route("/", methods=['GET'])
async def get_online_bots_route():
"""API endpoint to list bots (by name) currently online."""
return jsonify(list(current_app.active_clients.keys()))
# ------- Discord Token Functions
@bot_bp.route('/request_token', methods=['POST'])
async def request_token_route():
@@ -73,7 +67,6 @@ async def get_all_discord_tokens():
abort(500, f"An internal error occurred: {e}")
# ------- Util Functions
def find_token_in_active_clients(target_token: str) -> bool: