Skip to content

Commit b9449ed

Browse files
authored
Update owner-backup.js
1 parent 824b037 commit b9449ed

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

plugins/owner-backup.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ import fs from 'fs'
22
import archiver from 'archiver'
33

44
let handler = async (m, { conn }) => {
5-
// LID helpers usage
6-
const sender = (global.decodeSender ? global.decodeSender(m, conn) : (conn?.decodeJid ? conn.decodeJid(m.sender) : m.sender));
7-
const chatId = (global.decodeChat ? global.decodeChat(m, conn) : (conn?.decodeJid ? conn.decodeJid(m.chat) : m.chat));
8-
9-
// LID injection removed (now using global helpers)
10-
115
    m.reply('Tunggu sebentar, sedang menyiapkan backup...')
126

137
    const zipPath = './Elaina - AI Backup.zip'
@@ -36,8 +30,6 @@ let handler = async (m, { conn }) => {
3630
    })
3731

3832
    archive.pipe(output)
39-
40-
    // Tambahkan semua file & folder kecuali node_modules dan sessions
4133
    archive.glob('**/*', {
4234
        ignore: ['node_modules/**', 'sessions/**', 'Elaina - AI Backup.zip']
4335
    })
@@ -49,4 +41,4 @@ handler.help = ['getbp']
4941
handler.tags = ['owner']
5042
handler.command = /^(getbp)$/i
5143
handler.mods = true
52-
export default handler
44+
export default handler

0 commit comments

Comments
 (0)