Skip to content

Instantly share code, notes, and snippets.

@iatomic1
Last active December 3, 2024 21:46
Show Gist options
  • Save iatomic1/8338c3b00bad3f744f1fabd6ef21903e to your computer and use it in GitHub Desktop.
Save iatomic1/8338c3b00bad3f744f1fabd6ef21903e to your computer and use it in GitHub Desktop.
Gay
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