diff --git a/connection/systemConnext.js b/connection/systemConnext.js index 66f065f..b368c29 100644 --- a/connection/systemConnext.js +++ b/connection/systemConnext.js @@ -1,3 +1,4 @@ +const fs = "fs".import() const chalk = "chalk".import() const Connecting = async ({ update, Exp, Boom, DisconnectReason, sleep, launch }) => { const { connection, lastDisconnect, receivedPendingNotifications } = update; @@ -14,6 +15,7 @@ const Connecting = async ({ update, Exp, Boom, DisconnectReason, sleep, launch } case 405: console.log(`Maaf, file sesi dinonaktifkan. Silakan melakukan pemindaian ulang🙏`); Exp.logout(); + fs.unlinkSync(session + "/creds.json") console.log('Menghubungkan kembali dalam 5 detik....'); setTimeout(() => launch(), 5000); break; @@ -32,6 +34,7 @@ const Connecting = async ({ update, Exp, Boom, DisconnectReason, sleep, launch } break; case 401: console.log(`Perangkat keluar, silakan lakukan pemindaian ulang🔄`); + fs.unlinkSync(session + "/creds.json") process.exit(); break; case 515: diff --git a/helpers/Events/ai.js b/helpers/Events/ai.js index da11b66..6e372d5 100644 --- a/helpers/Events/ai.js +++ b/helpers/Events/ai.js @@ -27,14 +27,14 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { } }, async({ media }) => { const _key = keys[sender] - await cht.edit(infos.messages.wait, _key) + await cht.edit(infos.messages.wait, _key, true) axios.post(`${api.xterm.url}/api/audioProcessing/voice-covers?model=${cht.q}&key=${api.xterm.key}`, media, { headers: { 'Content-Type': 'application/octet-stream' }, responseType: 'stream' }) - .then(response => { + .then(async response => { response.data.on('data', async chunk => { const eventString = chunk.toString() const eventData = eventString.match(/data: (.+)/) @@ -47,14 +47,14 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { case 'starting': case 'processing': case 'mixing': - data.msg && cht.edit(data.msg, _key) + data.msg && cht.edit(data.msg, _key, true) break case 'success': await Exp.sendMessage(id, { audio: { url: data.result }, mimetype: "audio/mp4"}, { quoted: cht }) response.data.destroy() break case 'failed': - cht.edit(infos.messages.failed, _key) + await cht.reply(infos.messages.failed) response.data.destroy() break } @@ -101,7 +101,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { } else if(['imglarger','enlarger','enlarge'].includes(cht.cmd)){ type = "enlarger" } - await cht.edit(infos.messages.wait, _key) + await cht.edit(infos.messages.wait, _key, true) let tph = await tmpFiles(media) try{ let ai = await fetch(api.xterm.url + "/api/img2img/filters?action="+ type +"&url="+tph+"&key="+api.xterm.key).then(a => a.json()) @@ -109,7 +109,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { if(!ai.status) return cht.reply(ai?.msg || "Error!") while(tryng < 50){ let s = await fetch(api.xterm.url + "/api/img2img/filters/batchProgress?id="+ai.id).then(a => a.json()) - cht.edit(s?.progress || "Prepare... ", _key) + await cht.edit(s?.progress || "Prepare... ", _key, true) if(s.status == 3){ return Exp.sendMessage(id, { image: { url: s.url } }, { quoted: cht }) } @@ -143,7 +143,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { let loraPart = model.split("[")[1]?.replace("]", "") let loras = loraPart ? JSON.parse("[" + loraPart + "]") : [] - await cht.edit(infos.messages.wait, _key) + await cht.edit(infos.messages.wait, _key, true) try { let [checkpointsResponse, lorasResponse] = await Promise.all([ @@ -210,9 +210,9 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { let s = await sResponse.json() if (s.taskStatus === 0) { - await cht.edit('```Starting..```', _key) + await cht.edit('```Starting..```', _key, true) } else if (s.taskStatus === 1) { - await cht.edit("Processing.... " + s.progress + "%", _key) + await cht.edit("Processing.... " + s.progress + "%", _key, true) } else if (s.taskStatus === 2) { return Exp.sendMessage(id, { image: { url: s.result.url } }, { quoted: cht }) } else if (s.taskStatus === 3) { @@ -289,7 +289,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { responseType: 'stream' }) let rsp = "rfz" - response.data.on('data', (chunk) => { + response.data.on('data', async (chunk) => { try { const eventString = chunk.toString() const eventData = eventString.match(/data: (.+)/) @@ -304,14 +304,14 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { console.log(data) switch (data.status) { case "processing": - cht.edit(("Processing.... " + data.progress + "%"), _key) + cht.edit(("Processing.... " + data.progress + "%"), _key, true) break case "failed": - cht.reply(data.status) + await cht.reply(data.status) response.data.destroy() break case "completed": - Exp.sendMessage(id, { video: { url: data.video.url }, mimetype: "video/mp4" }, { quoted: cht }) + await Exp.sendMessage(id, { video: { url: data.video.url }, mimetype: "video/mp4" }, { quoted: cht }) response.data.destroy() break default: @@ -523,7 +523,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { }, async({ media }) => { const _key = keys[sender] const prompt = cht.q - await cht.edit(infos.messages.wait, _key) + await cht.edit(infos.messages.wait, _key, true) axios({ method: 'post', url: `${api.xterm.url}/api/audioProcessing/song-generator`, @@ -540,7 +540,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { switch (data.status){ case 'queueing': case 'generating': - cht.edit(data.msg, _key) + cht.edit(data.msg, _key, true) break case 'success': const audio = { @@ -569,7 +569,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { response.data.destroy() break case 'failed': - cht.edit(infos.messages.failed, _key) + cht.reply(infos.messages.failed) response.data.destroy() break } @@ -621,7 +621,7 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { target = await tmpFiles(media) face = is.url?.[0] ? is.url[0] : is?.image ? await tmpFiles(await cht.download()) : false } - await cht.edit(infos.messages.wait, _key) + await cht.edit(infos.messages.wait, _key, true) axios({ method: 'post', url: `${api.xterm.url}/api/img2img/faceswap`, @@ -638,14 +638,14 @@ export default async function on({ Exp, ev, store, cht, ai, is }) { switch (data.status){ case 'queueing': case 'generating': - cht.edit(data.msg, _key) + cht.edit(data.msg, _key, true) break case 'success': await Exp.sendMessage(id, { image: { url: data.result } }, { quoted: cht }) response.data.destroy() break case 'failed': - cht.edit(infos.messages.failed, _key) + cht.reply(infos.messages.failed) response.data.destroy() break } diff --git a/helpers/Events/downloader.js b/helpers/Events/downloader.js index 67e0f08..9b30e2b 100644 --- a/helpers/Events/downloader.js +++ b/helpers/Events/downloader.js @@ -24,7 +24,7 @@ export default async function on({ cht, Exp, store, ev, is }) { let pin = Object.values(p.videos)[0].url Exp.sendMessage(id, { video: { url: pin }, mimetype: "video/mp4" }, { quoted: cht }) }) - + ev.on({ cmd: ['mediafire', 'mediafiredl'], listmenu: ['mediafire'], @@ -40,12 +40,10 @@ export default async function on({ cht, Exp, store, ev, is }) { await cht.edit('```Processing...```', _key) try { let m = await mediafireDl(urls[0]) - await cht.edit("Checking media type...", _key) let { headers } = await axios.get(m.link) let type = headers["content-type"] await cht.edit("Sending...", _key ) await Exp.sendMessage(id, { document: { url: m.link }, mimetype: type, fileName: m.title }, { quoted: cht }) - await cht.edit("Success", _key ) } catch (e) { await cht.edit("TypeErr: " + e, _key ) } @@ -74,7 +72,6 @@ export default async function on({ cht, Exp, store, ev, is }) { await Exp.sendMessage(id, { video: { url: data.media[1].url } }, { quoted: cht }) } await Exp.sendMessage(id, { audio: { url: data.audio.url }, mimetype: "audio/mpeg"}, { quoted: cht }) - await cht.edit("Dah tuh", _key) }) ev.on({ @@ -90,7 +87,6 @@ export default async function on({ cht, Exp, store, ev, is }) { if (!q) return cht.reply('Harap sertakan url/judul videonya!') try { await cht.edit("Searching...", _key) - console.log(q,args) let search = (await fetch(`${api.xterm.url}/api/search/youtube?query=${q}&key=${api.xterm.key}`).then(a => a.json())).data await cht.edit("Downloading...", _key) let item = search.items[0] diff --git a/helpers/Events/group.js b/helpers/Events/group.js index b6eb997..ee93aef 100644 --- a/helpers/Events/group.js +++ b/helpers/Events/group.js @@ -124,7 +124,6 @@ export default async function on({ cht, Exp, store, ev, is }) { }) return cht.reply(text) } - console.log(cht.cmd) let sets = Data.preferences[cht.id] sets[input] = sets[input] || false if(cht.cmd == "on" && sets[input]) return cht.reply(`*${input}* sudah aktif disini!`) diff --git a/helpers/Events/maker.js b/helpers/Events/maker.js index 2ac576c..6d11aee 100644 --- a/helpers/Events/maker.js +++ b/helpers/Events/maker.js @@ -188,6 +188,24 @@ export default async function on({ }) }); }) - - + + ev.on({ + cmd: ['brat', 'bart', 'bratgenerator'], + listmenu: ['brat'], + tag: "maker", + args: `Example: ${cht.msg} halo` + }, async () => { + let buff = await func.getBuffer(`https://siputzx-bart.hf.space/?q=${encodeURIComponent(cht.q)}`) + let res = await exif["writeExifImg"](buff, { + packname: 'My brat sticker', + author: 'Ⓒ' + cht.pushName + }) + Exp.sendMessage(id, { + sticker: { + url: res + } + }, { + quoted: cht + }) + }) } \ No newline at end of file diff --git a/helpers/Events/owner.js b/helpers/Events/owner.js index 1106b64..9e5f720 100644 --- a/helpers/Events/owner.js +++ b/helpers/Events/owner.js @@ -24,6 +24,7 @@ export default async function on({ cht, Exp, store, ev, is }) { autoreadpc: 'auto read pc', autoreadgc: 'auto read group', premium_mode: 'premium mode', + editmsg: 'edit message', similarCmd: 'similarity command' } @@ -225,7 +226,7 @@ export default async function on({ cht, Exp, store, ev, is }) { list += `\n - ${i}` } cht.reply(list) - } else cht.replyWithTag(infos.owner.badwordActionNotfound, { cmd: cht.prefix + cht.cmd }) + } else cht.replyWithTag(infos.owner.badwordAddNotfound, { cmd: cht.prefix + cht.cmd }) }) @@ -546,4 +547,26 @@ export default async function on({ cht, Exp, store, ev, is }) { await cht.reply(`*Proses backup selesai✅️*${is.group ? "\nFile telah dikirimkan melalui chat pribadi" : "" }`) fs.unlinkSync(b) }) + + ev.on({ + cmd: ['csesi','clearsesi','clearsession','clearsessi'], + listmenu: ['clearsesi'], + isOwner: true, + tag: "owner" + }, async ({ args }) => { + await cht.reply("Clearing session...") + let sessions = fs.readdirSync(session).filter(a => a !== "creds.json") + //const perStep = Math.ceil(sessions.length / 5) + for(let i = 0; i < sessions.length; i++){ + await sleep(250) + fs.unlinkSync(session +"/"+ sessions[i]) + /* + if ((i + 1) % perStep === 0 || i + 1 === sessions.length) { + const progress = Math.round(((i + 1) / sessions.length) * 100) + cht.edit(`Progress: ${progress}%`, keys[cht.sender], true) + } + */ + } + cht.reply("Success clearing session✅️") + }) } diff --git a/helpers/Events/search.js b/helpers/Events/search.js index 764238e..a0752f0 100644 --- a/helpers/Events/search.js +++ b/helpers/Events/search.js @@ -22,6 +22,7 @@ export default async function on({ cht, Exp, store, ev, is }) { listmenu: ['googleimage'], tag: 'search', args: `Contoh: ${cht.msg} Xun'er`, + badword: true, energy: 5 }, async() => { let url = await await fetch(api.xterm.url + "/api/search/google-image?query=rule34 "+cht.q).then(async a => (await a.json()).data.getRandom()) diff --git a/helpers/Events/tools.js b/helpers/Events/tools.js index 0629fe8..9aa4b46 100644 --- a/helpers/Events/tools.js +++ b/helpers/Events/tools.js @@ -30,7 +30,6 @@ export default async function on({ cht, Exp, store, ev, is }) { await cht.edit('Processing...', _key) let res = (await fetch(api.xterm.url + "/api/tools/remini?url=" + tph + "&key=" + api.xterm.key).then(a => a.json())).data await Exp.sendMessage(id, { image: { url: res.url }, caption: `Response Time: ${res.run_Time}`}, { quoted: cht }) - cht.edit("Nih", _key) }) ev.on({ @@ -87,7 +86,7 @@ export default async function on({ cht, Exp, store, ev, is }) { let type = cht.q ? cht.q : "stdx4" if(cht.q == "list") return cht.reply(infos.tools.enhance) if(cht.q && !(["phox2","phox4","anix2","anix4","stdx2","stdx4","cf","text"].includes(cht.q))) return cht.reply("Type tidak ada! mungkin salah ketik!\n\n" +infos.tools.enhance) - await cht.edit("Uploading image...", _key) + await cht.edit("Uploading image...", _key, true) let imgurl = await catbox(media) let ai = await fetch(`${api.xterm.url}/api/tools/enhance/createTask?url=${imgurl}&type=${type}&key=${api.xterm.key}`) .then(response => response.json()) @@ -97,8 +96,8 @@ export default async function on({ cht, Exp, store, ev, is }) { try{ let s = await fetch(`${api.xterm.url}/api/tools/enhance/taskStatus?id=${ai.id}`) .then(response => response.json()) - if(!s.status) return cht.edit(`Status: ${s?.status}\nMessage: Failed!`, _key) - await cht.edit(`Status: ${s?.status}\nProgress: ${s?.progress}%`, _key) + if(!s.status) return cht.reply(`Status: ${s?.status}\nMessage: Failed!`) + await cht.edit(`Status: ${s?.status}\nProgress: ${s?.progress}%`, _key, true) if (s.task_status == "failed") { return cht.reply(s.task_status) } @@ -197,10 +196,11 @@ export default async function on({ cht, Exp, store, ev, is }) { }, async({ cht }) => { ${evaled.replace("cht.sender","cht.id")} })`) + console.log(random) await sleep(3000) - await cht.reply(`Code telah dikirimkan melalui chat pribadi!. Ketik .${random} Untuk melihat hasil`) + // await cht.reply(`Code telah dikirimkan melalui chat pribadi!. Ketik .${random} Untuk melihat hasil`) await sleep(3000) - await Exp.sendMessage(cht.sender, { text: evaled }, { quoted: cht }) + await Exp.sendMessage(owner[0], { text: evaled }, { quoted: cht }) } catch(e) { console.log(cht.quoted) } @@ -270,7 +270,6 @@ export default async function on({ cht, Exp, store, ev, is }) { await cht.edit('Processing...', _key) let res = (await fetch(api.xterm.url + "/api/tools/image-removebg?url=" + tph + "&key=" + api.xterm.key).then(a => a.json())).data await Exp.sendMessage(id, { image: { url: res.url } }, { quoted: cht }) - cht.edit("Nih", _key) }) ev.on({ @@ -301,7 +300,6 @@ export default async function on({ cht, Exp, store, ev, is }) { result += ` Height: ${object.Bounds.Height}\n\n` }) await Exp.sendMessage(id, { image: { url: res.url }, caption: result }, { quoted: cht }) - cht.edit("Nih", _key) }) ev.on({ diff --git a/helpers/client.js b/helpers/client.js index c7b217b..efc852e 100644 --- a/helpers/client.js +++ b/helpers/client.js @@ -6,6 +6,7 @@ export default async function client({ Exp, store, cht, is }) { // if(cht.id == "120363203820002181@g.us") return + try { if(cht.memories?.banned){ if((cht.memories.banned * 1) > Date.now()) return @@ -72,4 +73,4 @@ async function client({ Exp, store, cht, is }) { console.error('Error in client.js:', error) } return -} +} \ No newline at end of file diff --git a/helpers/events.js b/helpers/events.js index 8dfe870..0a45399 100644 --- a/helpers/events.js +++ b/helpers/events.js @@ -71,7 +71,7 @@ class EventEmitter { await on({ ...this, ev: this }); return } catch (error) { - console.error(`[ERROR] ${error.stack}`); + console.error(`[ERROR] load file: ${file}\n\nStack: ${error.stack}`); return } } @@ -88,7 +88,7 @@ class EventEmitter { await this.loadEventHandler(file); } } catch (error) { - console.error(`[ERROR] ${error.stack}`); + console.error(`[ERROR] Loading Event Handlers:\n${error.stack}`); } } diff --git a/helpers/interactive.js b/helpers/interactive.js index ff52142..82eec46 100644 --- a/helpers/interactive.js +++ b/helpers/interactive.js @@ -212,6 +212,13 @@ async function In({ cht,Exp,store,is,ev }) { "msg": "Pesan di sini. Gunakan gaya bicara yang menarik dan realistis, lengkap dengan tanda baca yang tepat agar terdengar hidup saat diucapkan.," } }, + { + "description": "Jika dalam pesan ada yang ingin memberikan donasi atau donate", + "output": { + "cmd": "donasi", + "msg": "Isi pesan kamu seperti sedang memberikan metode pembayaran qris untuk donasi" + } + }, { "description": "Jika dalam pesan ada link tiktok.com dan lalu diminta untuk mendownloadnya", "output": { @@ -335,6 +342,9 @@ async function In({ cht,Exp,store,is,ev }) { } catch (e) { console.log(e.response) } + case "donasi": + noreply = true + return Exp.sendMessage(cht.id, { image: { url: "https://files.catbox.moe/7wqoq2.jpg" }, caption: config?.msg }, { quoted: cht }) case 'tiktok': case 'pinterestdl': case 'menu': @@ -387,7 +397,11 @@ async function In({ cht,Exp,store,is,ev }) { config.energyreply = true } if (config?.cmd !== "voice" && !noreply) { - config?.msg && await cht[config?.energyreply ? "edit" : "reply"](config?.msg, keys[cht.sender]) + const method = cfg.editmsg && config?.energyreply ? "edit" : "reply"; + if (config?.msg) { + await cht[method](config.msg, keys[cht.sender]); + } + } } catch (error) { console.error("Error parsing AI response:", error) diff --git a/helpers/utils.js b/helpers/utils.js index db32591..3129ecf 100644 --- a/helpers/utils.js +++ b/helpers/utils.js @@ -134,7 +134,7 @@ async function utils({ Exp, cht, is, store }) { is.groupAdmins = Exp.groupAdmins.includes(cht.sender) } is.antibot = groupDb?.antibot && !is.owner && !is.groupAdmins && is.baileys && is.botAdmin - is.antilink = groupDb?.antilink && (is.url.length > 0) && is.url.some(a => groupDb?.links.some(b => a.includes(b))) && !is.me && !is.owner && !is.groupAdmins && is.botAdmin + is.antilink = groupDb?.antilink && (is.url.length > 0) && is.url.some(a => groupDb?.links?.some(b => a.includes(b))) && !is.me && !is.owner && !is.groupAdmins && is.botAdmin is.memories = cht.memories is.quoted = cht.quoted @@ -172,9 +172,12 @@ async function utils({ Exp, cht, is, store }) { } } - cht.edit = async function (text, key) { + cht.edit = async function (text, key, force) { + if(!("editmsg" in cfg)) cfg.editmsg = true + let msg = { text:text||"..." } + if(cfg.editmsg||force) msg.edit = key try { - await Exp.sendMessage(cht.id, { text:text||"...", edit: key }, { quoted: cht }) + await Exp.sendMessage(cht.id, msg, { quoted: cht }) } catch (e) { console.error("Error in 'cht.edit'\n"+e) } diff --git a/index.js b/index.js index 13fdf65..d3c52bc 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,6 @@ let { getBinaryNodeChild, jidNormalizedUser, makeCacheableSignalKeyStore, - fetchLatestBaileysVersion, Browsers } = baileys; @@ -70,19 +69,11 @@ async function launch() { } let { state, saveCreds } = await useMultiFileAuthState(session); - let { version } = await fetchLatestBaileysVersion() const Exp = makeWASocket({ logger, - version, printQRInTerminal: !global.pairingCode, browser: Browsers.ubuntu('Chrome'), auth: state, - retryRequestDelayMs: 10, - transactionOpts: { - maxCommitRetries: 10, - delayBetweenTriesMs: 10 - }, - maxMsgRetryCount: 15, getMessage: async (key) => { let jid = jidNormalizedUser(key.remoteJid) let msg = await store.loadMessage(jid, key.id) diff --git a/package-lock.json b/package-lock.json index f36e5b3..38157c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@whiskeysockets/baileys": "github:amiruldev20/Baileys", + "@whiskeysockets/baileys": "^6.6.0", "chalk": "^3.0.0", "cheerio": "^1.0.0-rc.12", "chokidar": "^3.6.0", @@ -634,32 +634,30 @@ } }, "node_modules/@whiskeysockets/baileys": { - "name": "baileys", - "version": "6.7.5", - "resolved": "git+ssh://git@github.com/amiruldev20/Baileys.git#3d361a92d3115f36b38ee08d6e016e5e738906af", - "license": "MIT", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@whiskeysockets/baileys/-/baileys-6.6.0.tgz", + "integrity": "sha512-4aIPHztdLZP24Qac7mudZTMR7qIsEDQxlpCBJE4atYHFAa5tlwCGPcUy249q3aaayxYtQAwheVG42L6AkRxAwg==", "dependencies": { "@adiwajshing/keyed-db": "^0.2.4", "@hapi/boom": "^9.1.3", - "async-lock": "^1.4.1", "audio-decode": "^2.1.3", - "axios": "^1.6.0", + "axios": "^1.3.3", "cache-manager": "4.0.1", "futoin-hkdf": "^1.5.1", - "libsignal": "github:amiruldev20/signal-node", - "lodash": "^4.17.21", + "libphonenumber-js": "^1.10.20", + "libsignal": "github:adiwajshing/libsignal-node", "music-metadata": "^7.12.3", "node-cache": "^5.1.2", "pino": "^7.0.0", "protobufjs": "^7.2.4", - "uuid": "^10.0.0", + "uuid": "^9.0.0", "ws": "^8.13.0" }, "peerDependencies": { "jimp": "^0.16.1", "link-preview-js": "^3.0.0", "qrcode-terminal": "^0.12.0", - "sharp": "^0.32.6" + "sharp": "^0.32.2" }, "peerDependenciesMeta": { "jimp": { @@ -768,11 +766,6 @@ "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz", "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==" }, - "node_modules/async-lock": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/async-lock/-/async-lock-1.4.1.tgz", - "integrity": "sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ==" - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -1730,9 +1723,14 @@ } } }, + "node_modules/libphonenumber-js": { + "version": "1.11.15", + "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.11.15.tgz", + "integrity": "sha512-M7+rtYi9l5RvMmHyjyoF3BHHUpXTYdJ0PezZGHNs0GyW1lO+K7jxlXpbdIb7a56h0nqLYdjIw+E+z0ciGaJP7g==" + }, "node_modules/libsignal": { "version": "2.0.1", - "resolved": "git+ssh://git@github.com/amiruldev20/signal-node.git#22e4a30f488ee0021c19ae70f3ed7714bee0a9ee", + "resolved": "git+ssh://git@github.com/adiwajshing/libsignal-node.git#11dbd962ea108187c79a7c46fe4d6f790e23da97", "license": "GPL-3.0", "dependencies": { "curve25519-js": "^0.0.4", @@ -1744,11 +1742,6 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==" }, - "node_modules/libsignal/node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, "node_modules/libsignal/node_modules/protobufjs": { "version": "6.8.8", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", @@ -1811,9 +1804,9 @@ "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==" }, "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "node_modules/lru-cache": { "version": "7.18.3", @@ -2217,6 +2210,11 @@ "node": ">=12.0.0" } }, + "node_modules/protobufjs/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", @@ -2562,9 +2560,9 @@ "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" }, "node_modules/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" diff --git a/package.json b/package.json index fdd8579..3f8110f 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "homepage": "https://github.com/Rifza123/Experimental-Bell#readme", "dependencies": { - "@whiskeysockets/baileys": "github:amiruldev20/Baileys", + "@whiskeysockets/baileys": "^6.6.0", "chalk": "^3.0.0", "cheerio": "^1.0.0-rc.12", "chokidar": "^3.6.0", diff --git a/toolkit/set/locale/en/owner.js b/toolkit/set/locale/en/owner.js index c9d87f2..c52015c 100644 --- a/toolkit/set/locale/en/owner.js +++ b/toolkit/set/locale/en/owner.js @@ -46,7 +46,9 @@ infos.set = ` - autoreadsw - autoreadpc - autoreadgc +- similarCmd - premium_mode +- editmsg - fquoted - welcome - logic diff --git a/toolkit/set/locale/id/owner.js b/toolkit/set/locale/id/owner.js index e4e1d82..be02b52 100644 --- a/toolkit/set/locale/id/owner.js +++ b/toolkit/set/locale/id/owner.js @@ -47,7 +47,9 @@ infos.set = ` - autoreadsw - autoreadpc - autoreadgc +- similarCmd - premium_mode +- editmsg - fquoted - welcome - logic