Skip to content

Instantly share code, notes, and snippets.

@Emiwayfire
Created November 11, 2023 22:24
Show Gist options
  • Save Emiwayfire/fffc5054065cbeb383a6de07dd9fdce1 to your computer and use it in GitHub Desktop.
Save Emiwayfire/fffc5054065cbeb383a6de07dd9fdce1 to your computer and use it in GitHub Desktop.
Ayaan
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