Last active
September 24, 2025 17:26
-
-
Save Corex24/2385552af9347c052e22c320e57b9aee to your computer and use it in GitHub Desktop.
Couple profile picture for Levanter bot
This file contains hidden or 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
| // 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