Implemented staus check and refactored node endpoints
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user