Skip to content

Instantly share code, notes, and snippets.

@Corex24
Last active September 24, 2025 17:26
Show Gist options
  • Select an option

  • Save Corex24/2385552af9347c052e22c320e57b9aee to your computer and use it in GitHub Desktop.

Select an option

Save Corex24/2385552af9347c052e22c320e57b9aee to your computer and use it in GitHub Desktop.
Couple profile picture for Levanter bot
// Plugin by Corex πŸ’™
const { bot, getJson } = require('../lib/');
bot({
pattern: 'couplepp ?(.*)',
desc: 'Random couple display picture',
type: 'misc'
}, async (message, match) => {
try {
const data = await getJson('https://gist.githubusercontent.com/Corex24/4a9fa99205f742ac8593553e0e255482/raw');
const couples = data.couplepp;
const { male, female } = couples[Math.floor(Math.random() * couples.length)];
// Send Male πŸ’™
await message.sendFromUrl(male, { caption: 'πŒπ€π‹π„ πŸ’™' });
// Send Female 🌸
await message.sendFromUrl(female, { caption: 'π…π„πŒπ€π‹π„ 🌸' });
const footer = `
╔════════════════════════════╗
β•‘ Created by Corex with πŸ’™ β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
`;
await message.send(footer);
} catch (e) {
console.error(e);
await message.send('⚠️ Failed to fetch couple dp. Please try again later.');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment