mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 12:22:00 +00:00
aaaaaaaaaaaaaaaaaa
This commit is contained in:
parent
c48e72523b
commit
399ab9aab6
1 changed files with 2 additions and 2 deletions
|
|
@ -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(() => { });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue