Skip to content

Commit

Permalink
Create anime-cry.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzoy committed Sep 11, 2022
1 parent 1ad362e commit f7e444c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plugins/anime-cry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import fetch from 'node-fetch'

let handler = async (m, { conn, usedPrefix }) => {
let res = await fetch('https://api.waifu.pics/sfw/cry')
if (!res.ok) throw await res.text()
let json = await res.json()
if (!json.url) throw 'Error!'
conn.sendButton(m.chat, 'D:', author, json.url, [['next', `${usedPrefix}cry`]], m)
}
handler.help = ['cry']
handler.tags = ['Anime']
handler.command = /^(cry)$/i
//MADE IN ERPAN 1140 BERKOLABORASI DENGAN BTS
export default handler

0 comments on commit f7e444c

Please sign in to comment.