From 399ab9aab6eb69d64aa0d27bfd146e25c105b0b7 Mon Sep 17 00:00:00 2001 From: Neko Life Date: Mon, 28 Jun 2021 14:08:11 +0900 Subject: [PATCH] aaaaaaaaaaaaaaaaaa --- resources/shaChat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/shaChat.js b/resources/shaChat.js index c41c254..81438ae 100644 --- a/resources/shaChat.js +++ b/resources/shaChat.js @@ -24,9 +24,9 @@ const URL = [ async function chatAnswer(message) { // return axios.post("https://rebot.me/ask", { username: "simsimi", question: message }).then(r => r.data).catch(() => { }); console.log(message); - return axios.get(`https://api.simsimi.net/v1/?text=${message.replace(/( |\n|\t)+/, "+").slice(0, 1000).replace(/Sim doesn't know what you are talking about. Please teach me/, "Sorry but i don't speak gibberish")}&lang=en`).then(r => { + return axios.get(`https://api.simsimi.net/v1/?text=${message.replace(/( |\n|\t)+/, "+").slice(0, 1000)}&lang=en`).then(r => { console.log(r.data); - return r.data.success; + return r.data.success.replace(/Sim doesn't know what you are talking about. Please teach me/, "Sorry but i don't speak gibberish"); }).catch(() => { }); }