Skip to content

Commit

Permalink
Create dog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingjux authored May 6, 2024
1 parent e38c7ea commit 66dabab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions plugins/dog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const {
smd
} = require('../lib')
smd({
cmdname: "dog",
desc: "Send videos of randome dogs!",
type: "misc",
filename: __filename,
},
async (m) => {
try {
const fetch = require("node-fetch");
let res = await fetch('https://random.dog/woof.json')
let json = await res.json()
if (json.status) return await m.reply("*Request Denied!*")
m.bot.sendFileUrl(m.jid, json.url, "", m, { author: "Venocyber-Md" }, "video");

} catch (e) { m.error(`${e}\n\nCommand: dog`, e, false) }
})

0 comments on commit 66dabab

Please sign in to comment.