Skip to content

Commit

Permalink
(#19) changed api
Browse files Browse the repository at this point in the history
  • Loading branch information
khoakomlem committed Jan 9, 2021
1 parent 2648f3a commit 55b418b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/utils/botengines/Simsimi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ const axios = require("axios");

module.exports = (api, message) => {
axios({
url: `https://simsimi.copcute.pw/api/sim.php?text=${encodeURI(message.body)}`,
url: `http://api.simsimi.net/v1/?text=${encodeURI(message.body)}&lang=vi`,
method: "GET",
mode: "no-cors"
}).then(res => {
const replyMsg = res.data.messages[0].text;
const replyMsg = res.data.messages[0].response;
api.sendMessage(replyMsg, message.threadID);
});
};

0 comments on commit 55b418b

Please sign in to comment.