forked from GataNina-Li/GataBot-MD1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfun-simi.js
18 lines (15 loc) Β· 1.14 KB
/
fun-simi.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import fetch from 'node-fetch'
let handler = async (m, { text, usedPrefix, command }) => {
if (!text) throw `${mg}πππΎπππ½πΌ ππ πππππ ππΌππΌ ππΌπ½ππΌπ πΎππππππ\n\nππ
πππππ\n*${usedPrefix + command} Hola Gata Bot*\n\nπππππ πΌ ππππ ππ ππΌππ ππ ππ\n\nπππΌππππ\n*${usedPrefix + command} Hello Gata Bot*`
let res = await fetch (`https://api.simsimi.net/v2/?text=${text}&lc=es`) //(`https://simsimi.info/api/?text=${text}&lc=es`)
let json = await res.json()
let tes = json.success.replace('simsimi', 'simsimi').replace('Simsimi', 'Simsimi').replace('sim simi', 'sim simi')
//m.reply(`${tes}`)
conn.sendHydrated(m.chat, `${tes}`, `πΌπ | ${wm}`, null, null, null, null, null, [
['ππ€π‘π«ππ§ ππ‘ πππ£πͺΜ | π½πππ π©π€ πππ£πͺ βοΈ', '/menu']
], m)
}
handler.help = ['simsimi']
handler.tags = ['General']
handler.command = ['bot', 'simi', 'simsimi', 'alexa', 'bixby', 'cortana', 'siri', 'okgoogle']
export default handler