Skip to content

Instantly share code, notes, and snippets.

@iatomic1
Created December 5, 2024 16:37
Show Gist options
  • Save iatomic1/905ff4de1fa02dfec25739ea85047915 to your computer and use it in GitHub Desktop.
Save iatomic1/905ff4de1fa02dfec25739ea85047915 to your computer and use it in GitHub Desktop.
Checks Match
const { bot, forwardOrBroadCast } = require('../lib/');
bot(
{
pattern: 'match ?(.*)',
desc: 'Checks the match var',
type: 'all',
},
async (message, match) => {
try {
if (!match) {
return await message.send('Please provide a match');
}
await message.send(match);
} 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