From 954b77f16cd8f1f43f9f1e290738e9e035096421 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:45:27 +0300 Subject: [PATCH] Adjsut /api return values --- public/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 2b13b43d5..648665996 100644 --- a/public/script.js +++ b/public/script.js @@ -8488,6 +8488,9 @@ async function connectAPISlash(args, text) { return key; } + + console.error('FIXME: The current API is not in the API map'); + return ''; } const apiConfig = CONNECT_API_MAP[text.toLowerCase()]; @@ -8524,7 +8527,7 @@ async function connectAPISlash(args, text) { } toastr.clear(toast); - return ''; + return text; } /**