Created
November 11, 2023 22:24
-
-
Save Emiwayfire/fffc5054065cbeb383a6de07dd9fdce1 to your computer and use it in GitHub Desktop.
Ayaan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Function,isPublic, getJson} = require("../lib/"); | |
Function({pattern: 'couple ?(.*)', fromMe: isPublic, desc: 'get random couple photos', type: 'anime'}, async (m, text, client) => { | |
const { result } = await getJson ('https://gist.githubusercontent.com/Emiwayfire/fcd8791a4f8679be16fe3b67216718ee/raw') | |
const { male, female } = result[Math.floor(Math.random()*result.length)]; | |
await client.sendMessage(m.jid, { image: { url: male }, caption: "Male" }) | |
await client.sendMessage(m.jid, { image: { url: female }, caption: "Female" }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment