import fetch from 'node-fetch';
const getRandomProfilePicture = async (gender) => {
const res = await fetch(https://randomuser.me/api/?gender=${gender}
);
const data = await res.json();
const profilePicture = data.results[0].picture.large;
return profilePicture;
};
const handler = async (m, { conn, command }) => {
const femaleProfilePicture = await getRandomProfilePicture('female');
const maleProfilePicture = await getRandomProfilePicture('male');
conn.sendButton(
m.chat,
'๐พ๐๐๐พ๐ผ โจ',
wm,
femaleProfilePicture,
[['๐๐๐๐๐๐๐๐๐ | ๐๐๐๐ ๐', /${command}
]],
m
);
conn.sendButton(
m.chat,
'๐พ๐๐๐พ๐ โจ',
wm,
maleProfilePicture,
[['๐๐๐๐๐๐๐๐๐ | ๐๐๐๐ ๐', /${command}
]],
m
);
};
handler.help = ['ppcouple'];
handler.tags = ['internet'];
handler.command = /^(ppcp|ppcouple|compartirperfil|compartirfoto)$/i;
export default handler;