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
| async function generateRandomHexName(length) { | |
| return randomBytes(Math.ceil(length / 2)).toString('hex').slice(0, length); | |
| }; | |
| case 'backup': { | |
| if (!isCreator) return newReply(mess.owner); | |
| if (isBot) return; | |
| let sender = m.mentionedJid[0] || m.sender || slimecode.parseMention(args[0]) || (args[0].replace(/[@.+-]/g, '').replace(' ', '') + '@s.whatsapp.net') || ''; | |
| let date = new Date(); | |
| let filename = await generateRandomHexName(32); | |
| const { execSync } = require('child_process'); |
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
| async function generateRandomHexName(length) { | |
| return randomBytes(Math.ceil(length / 2)).toString('hex').slice(0, length); | |
| }; | |
| case 'backup': { | |
| if (!isCreator) return newReply(mess.owner); | |
| if (isBot) return; | |
| let sender = m.mentionedJid[0] || m.sender || slimecode.parseMention(args[0]) || (args[0].replace(/[@.+-]/g, '').replace(' ', '') + '@s.whatsapp.net') || ''; | |
| let date = new Date(); | |
| let filename = await generateRandomHexName(32); | |
| const { execSync } = require('child_process'); |