Spaces:
Sleeping
Sleeping
File size: 1,417 Bytes
8d8b0ad |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
const {
cmd,
commands
} = require('../command');
const axios = require('axios');
cmd({
'pattern': "couplepp",
'alias': ["couple", "cpp"],
'react': '💑',
'desc': "Get a male and female couple profile picture.",
'category': "image",
'use': ".couplepp",
'filename': __filename
}, async (_0x552520, _0x51cf3f, _0x29f4cb, {
from: _0x556c44,
args: _0x2e3a6d,
reply: _0x30d3fc
}) => {
try {
_0x30d3fc("*💑 Fetching couple profile pictures...*");
const _0x173643 = await axios.get("https://api.davidcyriltech.my.id/couplepp");
if (!_0x173643.data || !_0x173643.data.success) {
return _0x30d3fc("❌ Failed to fetch couple profile pictures. Please try again later.");
}
const _0x5d4b91 = _0x173643.data.male;
const _0x5a1e4a = _0x173643.data.female;
if (_0x5d4b91) {
await _0x552520.sendMessage(_0x556c44, {
'image': {
'url': _0x5d4b91
},
'caption': "👨 Male Couple Profile Picture"
}, {
'quoted': _0x51cf3f
});
}
if (_0x5a1e4a) {
await _0x552520.sendMessage(_0x556c44, {
'image': {
'url': _0x5a1e4a
},
'caption': "👩 Female Couple Profile Picture"
}, {
'quoted': _0x51cf3f
});
}
} catch (_0x1dc6a7) {
console.error(_0x1dc6a7);
_0x30d3fc("❌ An error occurred while fetching the couple profile pictures.");
}
});
|