Created
December 5, 2024 16:37
-
-
Save iatomic1/905ff4de1fa02dfec25739ea85047915 to your computer and use it in GitHub Desktop.
Checks Match
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: '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