Last active
December 3, 2024 21:46
-
-
Save iatomic1/8338c3b00bad3f744f1fabd6ef21903e to your computer and use it in GitHub Desktop.
Gay
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
const { bot, forwardOrBroadCast } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'gay ?(.*)', | |
desc: 'React with a love emoji and save the tagged message', | |
type: 'whatsapp', | |
}, | |
async (message) => { | |
try { | |
if (!message.reply_message) { | |
return await message.send('_Example: Reply .love to a message_'); | |
} | |
await message.send( | |
{ | |
text: '🏳️🌈', | |
key: message.reply_message.key, | |
}, | |
{}, | |
'react' | |
); | |
} catch (error) { | |
return await message.send(error.message, { quoted: message.data }); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment