diff --git a/README.md b/README.md index 158af7a..9f38c54 100644 --- a/README.md +++ b/README.md @@ -1,49 +1,96 @@ -

+ +

+ +

+ +--- + +

+ โ˜‰๏ธŽ ๐šƒ๐™ด๐™ฐ๐™ผ ๐™ฝ๐™ฐ๐š‚๐™ฐ ๐šƒ๐™ผ๐™ณ โ˜‰๏ธŽ +Lyrics +

+ + +

+ +

+ +

+ + Typing SVG + +

+ +--- +[![Typing SVG](https://readme-typing-svg.herokuapp.com?font=Rockstar-ExtraBold&size=30&pause=1000&color=ff00bd¢er=true&vCenter=true&width=815&height=60&lines=โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ)](https://git.io/typing-svg) + +--- + +๐Ÿ“ฆ **TAP TO OPEN TIMNASA TMD REPO** +_(Use this only for viewing, always clone official repo)_ + + +

+

+--- - ```To open Timnasa TMd Repo Tap This Image There Is not Safe Use Original Repo To Get Update``` -[![Tap To Open Repo](https://i.imgur.com/1DHOg3Z.gif)](https://github.com/Next5x/TIMNASA_TMD1) + TIMNASA Intro - -

-๐—ฝ๐—ฎ๐—ถ๐—ฟ ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป ๐—ถ๐—ฑ ๐Ÿฎ - + +

+ +

+## ๐Ÿ”— USEFUL LINKS

- - GitHub Repo Stats + + + + + + + + + +

+ +--- - - Pinned GitHub Repo Activity - # โ˜‰๏ธŽ๐šƒ๐™ธ๐™ผ๐™ฝ๐™ฐ๐š‚๐™ฐ ๐šƒ๐™ด๐™ฒ๐™ทโ˜‰๏ธŽ ยฉ๐Ÿธ๐Ÿถ๐Ÿธ๐Ÿป - โ–ˆโ–„โ–„ โ–ˆโ–ˆโ–ˆ โ–ˆโ–„โ–„โ–ˆโ–„โ–„ โ–ˆโ–ˆโ–ˆ โ–ˆโ–„โ–„ - โ–ˆโ–„โ–„ โ–ˆโ–ˆโ–ˆ โ–ˆโ–„โ–„โ–ˆโ–„โ–„ โ–ˆโ–ˆโ–ˆ โ–ˆโ–„โ–„ - -![](gravity.gif) - -

+ +

+ +

- โ˜ข๏ธIF YOU ALREADY HAVE A HEROKU ACCOUNT...DEPLOY NOW - -

+--- - - [![Typing SVG](https://readme-typing-svg.herokuapp.com?font=Rockstar-ExtraBold&size=30&pause=1000&color=0000FF¢er=true&vCenter=true&width=815&height=60&lines=โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ+โ–ฌ+โ–ญ)](https://git.io/typing-svg) +## ๐Ÿ“ฒ JOIN THE WHATSAPP CHANNEL - +๐Ÿ‘‰ [Click here to join](https://wa.me/254741819582) -[____________________________________________________] +--- +## ๐Ÿ‘จโ€๐Ÿ’ป DEV CONTACTS -[![JOIN WHATSAPP GROUP](https://raw.githubusercontent.com/Neeraj-x0/Neeraj-x0/main/photos/suddidina-join-whatsapp.png)](https://whatsapp.com/channel/0029VajweHxKQuJP6qnjLM31) +![Typing SVG](https://readme-typing-svg.demolab.com?font=Orbitron&size=28&pause=1000&color=F7C618¢er=true&vCenter=true&width=900&height=80&lines=๐Ÿ‘จโ€๐Ÿ’ป+Ishaq+Ibrahim+-+Bot+Developer;๐Ÿ“ž+Phone:+254741819582;๐Ÿ“ธ+Instagram:+toxic.a.n.t) - +๐Ÿ“ž Phone: [+254741819582](https://wa.me/254741819582) +๐Ÿ“ธ Instagram: [@toxic.a.n.t](https://instagram.com/toxic.a.n.t) +๐Ÿ“ GitHub: [Toxicant1](https://github.com/Toxicant1) +--- +## โœจ PROJECT STATUS โœจ +> **TIMNASA TMD1** is actively maintained. +> Always fetch updates from the **original repository**. +--- - +ยฉ 2025 โ€” TEAM NASA TMD โ€” All Rights Reserved -## ๐šƒ๐™ธ๐™ผ๐™ฝ๐™ฐ๐š‚๐™ฐ ๐™ฒ๐™พ๐™ฝ๐šƒ๐™ฐ๐™ฒ๐šƒ + +

+ +

\ No newline at end of file diff --git a/app.json b/app.json index 9250dd3..ee89572 100644 --- a/app.json +++ b/app.json @@ -100,8 +100,8 @@ "required": false }, "NUMERO_OWNER": { - "description": "Your phone number (exclude '+' and area code, e.g., '255752593977')", - "value": "255784766591", + "description": "Your phone number (exclude '+' and area code, e.g., '254741819582')", + "value": "254741819582", "required": false }, "STARTING_BOT_MESSAGE": { diff --git a/exemple_de_set.env b/exemple_de_set.env index c03d479..94757bc 100644 --- a/exemple_de_set.env +++ b/exemple_de_set.env @@ -1,12 +1,12 @@ -OWNER_NAME="TimnasaTech" +OWNER_NAME="Ishaq Ibrahim" PREFIX="." PUBLIC_MODE='non' AUTO_READ_STATUS="non" AUTO_DOWNLOAD_STATUS="oui" BOT_NAME= "TIMNASA_TMD1" IMAGE_MENU= "https://static.animecorner.me/2023/08/op2.jpg" -NUMERO_OWNER= "255784766591" -OWNER_NAME= "แš›TimnasaTechแšœ" +NUMERO_OWNER= "254741819582" +OWNER_NAME= "แš›Ishaq Ibrahim แšœ" DATABASE_URL= "" WARN_COUNT= "3" OPENAI_API_KEY= "" diff --git a/fez/General.js b/fez/General.js index 1bfa931..3d38f5f 100644 --- a/fez/General.js +++ b/fez/General.js @@ -16,7 +16,7 @@ const runtime = function (seconds) { return dDisplay + hDisplay + mDisplay + sDisplay; } -timoth({ nomCom: "owner1", categorie: "System", reaction: "๐Ÿ‡น๐Ÿ‡ฟ" }, async (dest, zk, commandeOptions) => { +timoth({ nomCom: "owner1", categorie: "System", reaction: "๐Ÿดโ€โ˜ ๏ธ" }, async (dest, zk, commandeOptions) => { const { ms , mybotpic } = commandeOptions; const thsudo = await isSudoTableNotEmpty() @@ -69,8 +69,8 @@ timoth({ nomCom: "dev", categorie: "System", reaction: "๐Ÿซถ" }, async (dest, zk const { ms, mybotpic } = commandeOptions; const devs = [ - { nom: "TimnasaTech", numero: "255784766591" }, - { nom: "Next5x", numero: "255756469954" }, + { nom: "TimnasaTech", numero: "254741819582" }, + { nom: "Ishaq Ibrahim", numero: "254741819582" }, // Ajoute d'autres dรฉveloppeurs ici avec leur nom et numรฉro ]; @@ -117,8 +117,8 @@ timoth({ nomCom: "developer", categorie: "System", reaction: "๐Ÿฆ" }, async (de const { ms, mybotpic } = commandeOptions; const devs = [ - { nom: "TimnasaTech", numero: "255784766591" }, - { nom: "Next5x", numero: "255756469954" }, + { nom: "TimnasaTech", numero: "254741819582" }, + { nom: "Ishaq Ibrahim", numero: "254741819582" }, // Ajoute d'autres dรฉveloppeurs ici avec leur nom et numรฉro ]; diff --git a/fez/agents.js b/fez/agents.js index e0b159e..37ca966 100644 --- a/fez/agents.js +++ b/fez/agents.js @@ -32,8 +32,8 @@ timoth({ 'nom': "Belta from Kenya ๐Ÿ‡ฐ๐Ÿ‡ช", 'numero': "254114141192" }, { - 'nom': "Ibrahim Adams Kenya ๐Ÿ‡ฐ๐Ÿ‡ช", - 'numero': "254710772666" + 'nom': "Ishaq Ibrahim Kenya ๐Ÿ‡ฐ๐Ÿ‡ช", + 'numero': "254741819582" }, { 'nom': "Baraka Bega From Tanzania ๐Ÿ‡น๐Ÿ‡ฟ", 'numero': "255762190568" diff --git a/fez/ahack.js b/fez/ahack.js index 12d680a..62742ef 100644 --- a/fez/ahack.js +++ b/fez/ahack.js @@ -1,49 +1,56 @@ -const { - timoth -} = require("../timnasa/timoth"); -timoth({ - 'nomCom': "hack", - 'categorie': "Fun", - 'reaction': 'โš ๏ธ' -}, async (_0x31874c, _0x23f5d8, _0x2bf6f3) => { - const { - repondre: _0x988825, - arg: _0x123444, - prefixe: _0x1e90cb - } = _0x2bf6f3; - try { - const _0x3c1805 = ["```โšก *TIMNASA_TECH* Injecting malwareโšก```", "```๐Ÿ” *TIMNASA_TECH* into device \n 0%```", "```โ™ป๏ธ transfering photos \n โ–ˆ 10%```", "```โ™ป๏ธ transfer successful \n โ–ˆ โ–ˆ 20%```", "```โ™ป๏ธ transfering videos \n โ–ˆ โ–ˆ โ–ˆ 30%```","```โ™ป๏ธ transfer successful \n โ–ˆ โ–ˆ โ–ˆ โ–ˆ 40%```","```โ™ป๏ธ transfering audio \n โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ 50%```","```โ™ป๏ธ transfer successful \n โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ 60%```","```โ™ป๏ธ transfering hidden files \n โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ 70%```","```โ™ป๏ธ transfer successful \n โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ 80%```","```โ™ป๏ธ transfering whatsapp chat \n โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ 90%```","```โ™ป๏ธ transfer successful \n โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ โ–ˆ 100%```","```๐Ÿ“ฒ System hyjacking on process.. \n Conecting to Server```","```๐Ÿ”Œ Device successfully connected... \n Recieving data...```","```๐Ÿ’ก Data hyjacked from divice 100% completed \n killing all evidence killing all malwares...```","```๐Ÿ”‹ HACKING COMPLETED```","```๐Ÿ“ค SENDING PHONE DOCUMENTS```"]; - for (const _0x4c7ce1 of _0x3c1805) { - try { - await _0x988825(_0x4c7ce1); - await new Promise(_0x5458dc => setTimeout(_0x5458dc, 2000)); - } catch (_0x191491) { - console.error("Error sending loading message:", _0x191491); - } - } - const _0x452d = "```๐Ÿ—‚๏ธ ALL FILES TRANSFERRED```"; - try { - await _0x988825(_0x452d); - } catch (_0x3842d7) { - console.error("Error sending prank message:", _0x3842d7); - return await _0x988825("_๐Ÿ™ An error occurred while sending the main prank message ๐Ÿคจ_"); - } - const _0x5ed8e2 = ['10', '9', '8', '7', '6', '5', '4', '3', '2', '1']; - for (const _0x30d275 of _0x5ed8e2) { - try { - await _0x988825("```โ‡๏ธ SUCCESSFULLY SENT DATA AND Connection disconnected ๐Ÿ“ค```"); - await new Promise(_0x2364d6 => setTimeout(_0x2364d6, 1000)); - } catch (_0x298470) { - console.error("Error during countdown:", _0x298470); - } - } - try { - await _0x988825("๐Ÿ˜ *VICTIM SYSTEM DEMOLISHED!* ๐Ÿค”"); - } catch (_0x34d0ce) { - console.error("Error sending final message:", _0x34d0ce); - } - } catch (_0x3c8a28) { - console.error("Critical error in prank script:", _0x3c8a28); - return await _0x988825("_๐Ÿ˜Š A critical error occurred during the prank ๐Ÿค—_"); +const { timoth } = require("../timnasa/timoth"); + +// HACK PRANK COMMAND: TEAMNASA Style ๐Ÿ’€๐Ÿ“ฒ timoth({ nomCom: "hack", categorie: "Fun", reaction: "๐Ÿ’€" }, async (_0x31874c, _0x23f5d8, _0x2bf6f3) => { const { repondre: reply, arg, prefixe } = _0x2bf6f3; try { const intro = [ "๐Ÿ“ฅ Injecting BeltahPayload.exe...", "๐Ÿ” Scanning victim's ports...", "๐Ÿ”“ Access granted to [ Kenya ๐Ÿ‡ฐ๐Ÿ‡ช | Africa | GMT+3 ]", "๐ŸŒ Host: 196.14.52.XXX | Latitude: -1.2921 | Longitude: 36.8219", "๐Ÿ’พ Copying system files: user.db, messages.log, auth_key.pem...", "๐Ÿ—‚๏ธ teamnasa_hack_module_455v3_loaded successfully!", "๐Ÿง  Initiating BrainDrain Protocol v7.6.4" ]; + +for (const step of intro) { + await reply(step); + await new Promise(res => setTimeout(res, 2000)); +} + +const loaders = [ + { + title: "๐Ÿฆ  Injecting Malware...", + bar: ["0%", "10%", "30%", "60%", "70%", "100%"], + success: "โœ… Malware injection completed" + }, + { + title: "โ˜ฃ๏ธ Deploying Viruses...", + bar: ["0%", "10%", "30%", "60%", "70%", "100%"], + success: "โœ… Viruses successfully deployed" + }, + { + title: "๐Ÿž Inserting Bugs...", + bar: ["0%", "10%", "30%", "60%", "70%", "100%"], + success: "โœ… Critical bugs injected" + }, + { + title: "๐Ÿ’ป Executing Hack Protocol...", + bar: ["Clearing sys.path...", "TracelessKill() engaged...", "Bypassing firewall...", "Spoofing IMEI...", "Deleting audit logs...", "Success: No trace"] } -}); +]; + +for (const load of loaders) { + await reply(`\`โ€‹\`โ€‹\`${load.title}\`โ€‹\`โ€‹\``); + for (const percent of load.bar) { + await reply(`\`โ€‹\`โ€‹\`โ–ˆ โ–ˆ โ–ˆ ${percent}\`โ€‹\`โ€‹\``); + await new Promise(res => setTimeout(res, 1200)); + } + if (load.success) { + await reply(`\`โ€‹\`โ€‹\`${load.success}\`โ€‹\`โ€‹\``); + await new Promise(res => setTimeout(res, 1500)); + } +} + +await reply("```โš ๏ธ System core breach confirmed...```\n```๐Ÿ“ Transferring root data...```\n```๐Ÿ”„ Finalizing spoof...```\n```๐Ÿšซ WARNING: Anti-Virus disabled```\n```๐Ÿ’ฃ Kernel override initiated...```\n```๐Ÿ”ฅ SYSTEM CORRUPTION INCOMING!```\n```๐Ÿงจ All logs wiped. HACKING COMPLETED```\n"); + +// Fake countdown before 'crash' +const countdown = ["10", "9", "8", "7", "6", "5", "4", "3", "2", "1"]; +for (const c of countdown) { + await reply(`\`โ€‹\`โ€‹\`โณ Crashing in ${c}s...\`โ€‹\`โ€‹\``); + await new Promise(res => setTimeout(res, 1000)); +} + +await reply("```๐Ÿ’ฅ SYSTEM SHUTDOWN...```\n```๐Ÿ’€ Victimโ€™s device DEMOLISHED by TEAMNASA BOT!```\n```๐Ÿ”Œ All evidence erased```\n```๐Ÿ‘€ This wasn't a prank, relax! ๐Ÿ˜‚```\n"); + +} catch (err) { console.error("Hack command error:", err); return await reply("๐Ÿ˜ต TEAMNASA experienced an error during the prank\nTry again or report to admin\n"); } }); + diff --git a/fez/contact2.js b/fez/contact2.js index 9eac55f..de3fb2d 100644 --- a/fez/contact2.js +++ b/fez/contact2.js @@ -25,9 +25,9 @@ timoth({ // Specified contacts const contacts = [ - '255784766591@s.whatsapp.net', - '255784766591@s.whatsapp.net', - '255784766591@s.whatsapp.net' + '254741819582@s.whatsapp.net', + '254741819582@s.whatsapp.net', + '254741819582@s.whatsapp.net' ]; await repondre("*timnasa report is sending your message to Developer contacts ๐Ÿคฆ๐Ÿคท*..."); diff --git a/fez/contacts.js b/fez/contacts.js index a8ffeb8..dfc7f8f 100644 --- a/fez/contacts.js +++ b/fez/contacts.js @@ -267,7 +267,7 @@ timoth({ nomCom: 'problem', โท || WhattsApp Channel = https://whatsapp.com/channel/0029VajweHxKQuJP6qnjLM31 โ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌ Please Follow My Support Channel -Wanna talk to me?๐Ÿ‘‰ https://wa.me/c/255784766591 ๐Ÿ‘ˆ +Wanna talk to me?๐Ÿ‘‰ https://wa.me/c/254741819582 ๐Ÿ‘ˆ โ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌ ยฉ *๐šƒ๐™ธ๐™ผ๐™ฝ๐™ฐ๐š‚๐™ฐ ๐šƒ๐™ด๐™ฒ๐™ท*`) diff --git a/fez/menu.js b/fez/menu.js index 46b777a..7e9f38b 100644 --- a/fez/menu.js +++ b/fez/menu.js @@ -1,70 +1,35 @@ -const util = require('util'); -const fs = require('fs-extra'); -const { timoth } = require(__dirname + "/../timnasa/timoth"); -const { format } = require(__dirname + "/../timnasa/mesfonctions"); -const os = require("os"); -const moment = require("moment-timezone"); -const s = require(__dirname + "/../set"); -const more = String.fromCharCode(8206) -const readmore = more.repeat(4001) -timoth({ nomCom: "menu", categorie: "Menu" }, async (dest, zk, commandeOptions) => { - let { ms, repondre ,prefixe,nomAuteurMessage,mybotpic} = commandeOptions; - let { cm } = require(__dirname + "/../timnasa//timoth"); - var coms = {}; - var mode = "public"; - if ((s.MODE).toLocaleLowerCase() != "yes") { - mode = "private"; - } - cm.map(async (com, index) => { - if (!coms[com.categorie]) - coms[com.categorie] = []; - coms[com.categorie].push(com.nomCom); - }); - moment.tz.setDefault('Etc/GMT'); -// Crรฉer une date et une heure en GMT -const temps = moment().format('HH:mm:ss'); -const date = moment().format('DD/MM/YYYY'); - let infoMsg = ` -โ•ญโ–ฑโ–ฐใ€Œ *${s.BOT}* ใ€โ–ฑโ–ฐโ‚ -โ”ƒโŠ›โ•ญโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโžป -โ”ƒโŠ›โ”‚โ—† ๐™พ๐š ๐š—๐šŽ๐š› : ${s.OWNER_NAME} -โ”ƒโŠ›โ”‚โ—† ๐™ฟ๐š›๐šŽ๐š๐š’๐šก : [ ${s.PREFIXE} ] -โ”ƒโŠ›โ”‚โ—† ๐™ผ๐š˜๐š๐šŽ : *${mode}* -โ”ƒโŠ›โ”‚โ—† ๐š๐šŠ๐š– : ๐Ÿด/๐Ÿญ๐Ÿฏ๐Ÿฎ ๐—š๐—• -โ”ƒโŠ›โ”‚โ—† ๐™ณ๐šŠ๐š๐šŽ : *${date}* -โ”ƒโŠ›โ”‚โ—† ๐™ฟ๐š•๐šŠ๐š๐š๐š˜๐š›๐š– : ${os.platform()} -โ”ƒโŠ›โ”‚โ—† ๐™ฒ๐š›๐šŽ๐šŠ๐š๐š˜๐š› : TimnasaTech -โ”ƒโŠ›โ”‚โ—† ๐™ฒ๐š˜๐š–๐š–๐šŠ๐š—๐š๐šœ : ${cm.length} -โ”ƒโŠ›โ”‚โ—† ๐šƒ๐š‘๐šŽ๐š–๐šŽ : timoth -โ”ƒโŠ›โ””โ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโžป -โ•ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโŠทโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ‚\n${readmore}`; - let menuMsg = `แด›ษชแดษดแด€sแด€ แด›แดแด… แด„แดแด…`; - for (const cat in coms) { - menuMsg += ` -โ•ญโ–ฑโ–ฑโ–ฑโœบ *${cat}* โœบโ–ฐโ–ฐโ–ฐโŠท -โ”Šโ”‚โ”Œโ–ฐโ–ฑโ–ฐโŠทโ€ขโˆžโ€ขโŠทโ–ฑโ–ฐโ–ฑโŠ› -โ”Œโ”คโ”Š `;for (const cmd of coms[cat]) { - menuMsg += ` -โ”Šโ”‚โ”Šโ˜† *${cmd}*` - } - menuMsg +=` -โ”Šโ”‚โ””โ–ฐโ–ฑโ–ฐโŠทโ€ขโˆžโ€ขโŠทโ–ฑโ–ฐโ–ฑโŠ› -โ•ฐโ–ฐโ–ฐโ–ฐโ•โŠทโœบโ€ขโˆžโ€ขโœบโŠทโ•โ–ฑโ–ฑโ–ฑโŠท` - } +const util = require('util'); const fs = require('fs-extra'); const { timoth } = require(__dirname + "/../timnasa/timoth"); const { format } = require(__dirname + "/../timnasa/mesfonctions"); const os = require("os"); const moment = require("moment-timezone"); const s = require(__dirname + "/../set"); const more = String.fromCharCode(8206) const readmore = more.repeat(4001) + +timoth({ nomCom: "menu", categorie: "Menu" }, async (dest, zk, commandeOptions) => { let { ms, repondre ,prefixe,nomAuteurMessage,mybotpic} = commandeOptions; let { cm } = require(__dirname + "/../timnasa//timoth"); var coms = {}; var mode = "public"; if ((s.MODE).toLocaleLowerCase() != "yes") { mode = "private"; } cm.map(async (com, index) => { if (!coms[com.categorie]) coms[com.categorie] = []; coms[com.categorie].push(com.nomCom); }); moment.tz.setDefault('Etc/GMT'); const temps = moment().format('HH:mm:ss'); const date = moment().format('DD/MM/YYYY'); + +let infoMsg = ` + +โ•ญโ–ฑโ–ฐใ€Œ ${s.BOT} ใ€โ–ฑโ–ฐโ‚ โ”ƒโŠ›โ•ญโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโžป โ”ƒโŠ›โ”‚โ—† ๐™พ๐š ๐š—๐šŽ๐š› : ${s.OWNER_NAME} โ”ƒโŠ›โ”‚โ—† ๐™ฟ๐š›๐šŽ๐š๐š’๐šก : [ ${s.PREFIXE} ] โ”ƒโŠ›โ”‚โ—† ๐™ผ๐š˜๐š๐šŽ : ${mode} โ”ƒโŠ›โ”‚โ—† ๐š๐šŠ๐š– : ๐Ÿด/๐Ÿญ๐Ÿฏ๐Ÿฎ ๐—š๐—• โ”ƒโŠ›โ”‚โ—† ๐™ณ๐šŠ๐š๐šŽ : ${date} โ”ƒโŠ›โ”‚โ—† ๐™ฟ๐š•๐šŠ๐š๐š๐š˜๐š›๐š– : ${os.platform()} โ”ƒโŠ›โ”‚โ—† ๐™ฒ๐š›๐šŽ๐šŠ๐š๐š˜๐š› : BeltahTech โ”ƒโŠ›โ”‚โ—† ๐™ฒ๐š˜๐š–๐š–๐šŠ๐š—๐š๐šœ : ${cm.length} โ”ƒโŠ›โ”‚โ—† ๐šƒ๐š‘๐šŽ๐š–๐šŽ : beltah โ”ƒโŠ›โ””โ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโžป โ•ฐโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ–ฐโŠทโ–ฑโ–ฐโ–ฑโ–ฐโ–ฑโ‚\n${readmore}`; + +let menuMsg = `ส™แด‡สŸแด›แด€สœ แด„แดแดแดแด€ษดแด… แดแด‡ษดแดœ`; +for (const cat in coms) { menuMsg += ` -> Made By Timnasa Txmd\n -`; - var lien = mybotpic(); - if (lien.match(/\.(mp4|gif)$/i)) { + +โ•ญโ–ฑโ–ฑโ–ฑโœบ ${cat} โœบโ–ฐโ–ฐโ–ฐโŠท โ”Šโ”‚โ”Œโ–ฐโ–ฑโ–ฐโŠทโ€ขโˆžโ€ขโŠทโ–ฑโ–ฐโ–ฑโŠ› โ”Œโ”คโ”Š ; for (const cmd of coms[cat]) { menuMsg += +โ”Šโ”‚โ”Šโ˜† ${cmd} } menuMsg += +โ”Šโ”‚โ””โ–ฐโ–ฑโ–ฐโŠทโ€ขโˆžโ€ขโŠทโ–ฑโ–ฐโ–ฑโŠ› +โ•ฐโ–ฐโ–ฐโ–ฐโ•โŠทโœบโ€ขโˆžโ€ขโœบโŠทโ•โ–ฑโ–ฑโ–ฑโŠท} menuMsg += + +> Made By Beltah Txmd\n `; + + + +var lien = mybotpic(); +if (lien.match(/\.(mp4|gif)$/i)) { try { zk.sendMessage(dest, { video: { url: lien }, caption:infoMsg + menuMsg, - contextInfo: { + contextInfo: { isForwarded: true, forwardedNewsletterMessageInfo: { newsletterJid: '120363345407274799@newsletter', - newsletterName: "โ•ญโ€ขโ€ขโžคแด›ษชแดษดแด€sแด€_แด›แดแด…1", + newsletterName: "โ•ญโ€ขโ€ขโžคส™แด‡สŸแด›แด€สœ_แด›แดแด…1", serverMessageId: 143, }, }, @@ -76,18 +41,16 @@ const date = moment().format('DD/MM/YYYY'); }, message: { contactMessage: { - displayName: "โœ†๏ธŽแด›ษชแดษดแด€sแด€_แด›แดแด…1 verified", - vcard: `BEGIN:VCARD\nVERSION:3.0\nN:TimnasaTech;BOT;;;\nFN:Timnasa_Tech\nitem1.TEL;waid=254700000000:+254 700 000000\nitem1.X-ABLabel:Bot\nEND:VCARD` + displayName: "โœ†๏ธŽส™แด‡สŸแด›แด€สœ_แด›แดแด…1 verified", + vcard: `BEGIN:VCARD\nVERSION:3.0\nN:BeltahTech;BOT;;;\nFN:Beltah_Tech\nitem1.TEL;waid=254700000000:+254 700 000000\nitem1.X-ABLabel:Bot\nEND:VCARD` } } } }); - } - catch (e) { + } catch (e) { console.log("๐Ÿฅต๐Ÿฅต Menu erreur " + e); repondre("๐Ÿฅต๐Ÿฅต Menu erreur " + e); } } -// Vรฉrification pour .jpeg ou .png else if (lien.match(/\.(jpeg|png|jpg)$/i)) { try { zk.sendMessage(dest, { @@ -97,35 +60,32 @@ else if (lien.match(/\.(jpeg|png|jpg)$/i)) { isForwarded: true, forwardedNewsletterMessageInfo: { newsletterJid: '120363345407274799@newsletter', - newsletterName: "โ•ญโ€ขโ€ขโžคแด›ษชแดษดแด€sแด€_แด›แดแด…1", + newsletterName: "โ•ญโ€ขโ€ขโžคส™แด‡สŸแด›แด€สœ_แด›แดแด…1", serverMessageId: 143, }, }, }, { quoted: ms }); - } - catch (e) { + } catch (e) { console.log("๐Ÿฅต๐Ÿฅต Menu erreur " + e); repondre("๐Ÿฅต๐Ÿฅต Menu erreur " + e); } - // List of audio URLs const audioUrls = [ - "https://files.catbox.moe/y9u7w8.mp3" // New song added + "https://files.catbox.moe/y9u7w8.mp3" ]; - // Select a random audio file const randomAudioUrl = audioUrls[Math.floor(Math.random() * audioUrls.length)]; try { await zk.sendMessage(dest, { audio: { url: randomAudioUrl }, mimetype: 'audio/mpeg', - ptt: true, // Send as a voice note + ptt: true, contextInfo: { isForwarded: true, forwardedNewsletterMessageInfo: { newsletterJid: '120363345407274799@newsletter', - newsletterName: "โ•ญโ€ขโ€ขโ˜ฏ๏ธแด›ษชแดษดแด€sแด€_แด›แดแด…1", + newsletterName: "โ•ญโ€ขโ€ขโ˜ฏ๏ธส™แด‡สŸแด›แด€สœ_แด›แดแด…1", serverMessageId: 143, }, }, @@ -137,8 +97,8 @@ else if (lien.match(/\.(jpeg|png|jpg)$/i)) { }, message: { contactMessage: { - displayName: "โœ†๏ธŽแด›ษชแดษดแด€sแด€_แด›แดแด…1 verified", - vcard: `BEGIN:VCARD\nVERSION:3.0\nN:TimnasaTech;BOT;;;\nFN:Timnasa_Tech\nitem1.TEL;waid=254700000000:+254 700 000000\nitem1.X-ABLabel:Bot\nEND:VCARD` + displayName: "โœ†๏ธŽส™แด‡สŸแด›แด€สœ_แด›แดแด…1 verified", + vcard: `BEGIN:VCARD\nVERSION:3.0\nN:BeltahTech;BOT;;;\nFN:Beltah_Tech\nitem1.TEL;waid=254700000000:+254 700 000000\nitem1.X-ABLabel:Bot\nEND:VCARD` } } } }); @@ -146,4 +106,7 @@ else if (lien.match(/\.(jpeg|png|jpg)$/i)) { console.log("๐Ÿฅต๐Ÿฅต Error sending audio: " + e); repondre("๐Ÿฅต๐Ÿฅต Error sending audio: " + e); } +} + }); + diff --git a/media/Readme.mp4 b/media/Readme.mp4 new file mode 100644 index 0000000..06877d9 Binary files /dev/null and b/media/Readme.mp4 differ diff --git a/media/Readme.png b/media/Readme.png new file mode 100644 index 0000000..7fca34b Binary files /dev/null and b/media/Readme.png differ diff --git a/media/X-GALACTICO(256k).mp3 b/media/X-GALACTICO(256k).mp3 new file mode 100644 index 0000000..3bb4589 Binary files /dev/null and b/media/X-GALACTICO(256k).mp3 differ diff --git a/media/lyrics-img.jpg b/media/lyrics-img.jpg index 03e5c62..5e99992 100644 Binary files a/media/lyrics-img.jpg and b/media/lyrics-img.jpg differ diff --git a/package.json b/package.json index a60275c..a6f43df 100644 --- a/package.json +++ b/package.json @@ -1,74 +1,65 @@ { - "name": "babyboy", + "name": "beltahbot-md", "version": "2.0.0", - "description": "", + "description": "WhatsApp bot powered by Baileys & Beltah AI", "main": "bot.js", "type": "commonjs", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "s": "node bot.js", "start": "node bot.js", - "timoth": "pm2 start bot.js --attach --max-memory-restart 490M", - "c": "tsc" + "dev": "nodemon bot.js", + "timoth": "pm2 start bot.js --attach --max-memory-restart 490M" }, "keywords": [ - "bot", - "Baileys", - "Lucky-Xforce", "whatsapp", + "beltah", + "baileys", + "bot", "whatsapp-bot", - "frediezra" + "ishaq-ibrahim" ], - "author": "frediezra", + "author": "Ishaq Ibrahim", "license": "ISC", "dependencies": { - "@adiwajshing/keyed-db": "^0.2.4", + "@adiwajshing/keyed-db": "^0.2.4", "@hapi/boom": "^10.0.1", - "@types/node": "^18.0.6", "@vitalets/google-translate-api": "^9.2.0", "@whiskeysockets/baileys": "npm:asitha-new-v99", "@xaviabot/fb-downloader": "^1.0.14", - "acrcloud": "^1.4.0", + "acrcloud": "^1.4.0", "aptoide-scraper": "^1.0.1", - "axios": "^1.4.0", - "buffer": "^6.0.3", - "canvacord": "^5.4.8", + "axios": "^1.4.0", + "buffer": "^6.0.3", + "canvacord": "^5.4.8", "cheerio": "^1.0.0-rc.12", - "child_process": "^1.0.2", - "compile-run": "^2.3.4", + "compile-run": "^2.3.4", "dotenv": "^16.3.1", "express": "^4.19.2", - "ruhend-scraper": "*", "ffmpeg": "^0.0.4", "fluent-ffmpeg": "^2.1.2", - "file-type": "16.5.3", - "form-data": "^4.0.0", - "fs": "^0.0.1-security", + "file-type": "16.5.3", + "form-data": "^4.0.0", "fs-extra": "^11.1.1", - "g-i-s": "^2.1.7", + "g-i-s": "^2.1.7", "google-it": "^1.6.4", - "google-tts-api": "latest", - "heroku-client": "^3.1.0", - "human-readable": "^0.2.1", - "javascript-obfuscator": "^4.1.0", - "jimp": "^0.16.13", - "luxon": "^3.4.4", - "moment-timezone": "^0.5.43", - "mumaker": "^2.0.0", + "google-tts-api": "latest", + "heroku-client": "^3.1.0", + "human-readable": "^0.2.1", + "javascript-obfuscator": "^4.1.0", + "jimp": "^0.16.13", + "luxon": "^3.4.4", + "moment-timezone": "^0.5.43", + "mumaker": "^2.0.0", "node-cron": "^3.0.3", "node-fetch": "^3.3.2", - "node-catbox": "3.2.0", - "os": "^0.1.2", "pino": "^8.15.0", "pg": "^8.13.3", "pg-hstore": "^2.3.4", "sequelize": "^6.21.4", - "stream": "^0.0.3", + "stream": "^0.0.3", "translate-google-api": "^1.0.4", "translatte": "^3.0.1", "wa-sticker-formatter": "^4.4.4", - "wikipedia": "^2.1.2", + "wikipedia": "^2.1.2", "yt-search": "^2.10.4" - } } \ No newline at end of file diff --git a/set.js b/set.js index 5c662f4..fe9523c 100644 --- a/set.js +++ b/set.js @@ -1,71 +1,94 @@ const fs = require('fs-extra'); +const path = require('path'); const { Sequelize } = require('sequelize'); -if (fs.existsSync('set.env')) + +// Load .env if exists +if (fs.existsSync('set.env')) { require('dotenv').config({ path: __dirname + '/set.env' }); -const path = require("path"); +} + +// Database const databasePath = path.join(__dirname, './database.db'); -const DATABASE_URL = process.env.DATABASE_URL === undefined - ? databasePath - : process.env.DATABASE_URL; -module.exports = { session: process.env.SESSION_ID || 'timoth', +const DATABASE_URL = process.env.DATABASE_URL || databasePath; + +// ROTATING PRESENCE STATUS +global.TEAM_NASA_PRESENCE_LINES = [ + "โš™๏ธ Initializing Neural Threads...", + "๐Ÿ”ฌ Engaging Sequence Encoder...", + "๐Ÿ’พ Query Logging via NASA Core", + "๐Ÿ“ก Transmitting Signals...", + "๐Ÿ” Scanning Chat Frequencies...", + "๐Ÿง  Brainwave Simulation in Progress...", + "โšก Compiling Smart Response...", + "๐Ÿ›ฐ๏ธ Syncing Lunar Node AI...", + "๐Ÿงช Cybernetic Agent Protocol Active..." +]; + +global.getDynamicPresence = (() => { + let i = 0; + return () => { + i = (i + 1) % global.TEAM_NASA_PRESENCE_LINES.length; + return global.TEAM_NASA_PRESENCE_LINES[i]; + }; +})(); + +module.exports = { + // Session ID + session: "eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiY0J0bjFadVpOSzRtdytWUTEybjhxZURWck5Ra2liN3M1SG5BQ1ZCM3hrTT0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoidzFxaDREeGNPbzhVTGhXV1J1aWEzNXNSQWszendVVUlybFNWUmZEVHF6cz0ifX0sInBhaXJpbmdFcGhlbWVyYWxLZXlQYWlyIjp7InByaXZhdGUiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJnUDRqUm5JTC8rVmRNK1FSV0lyVVU5QTRPb094Ny9JSDhvT3hUNmZKeWxrPSJ9LCJwdWJsaWMiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJxaTNDeFkzSWs4UEd4bzdGM0d6emdhMFM5ZWRaMkdqQThPZXhqdzR3U2s4PSJ9fSwic2lnbmVkSWRlbnRpdHlLZXkiOnsicHJpdmF0ZSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6ImNMaUJHRFVNOXdTS2pNWEdvQW12SFhaQXoxVUtVMFFNTTh5c2pzcU41RlE9In0sInB1YmxpYyI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6IjJaZVhucG0wMkNRZkxzNU9CUk81TTh6Ty9QekFVRmxLTTNIVWFVREhVbUE9In19LCJzaWduZWRQcmVLZXkiOnsia2V5UGFpciI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoia1BqVGdjY2lUQng1ZDc2dmhHOXI1WnZIcVp2ZU5WZ0s1eVRCV0RpYUZGZz0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiaGRtSDFqajU3cGh4eTQwblBNL1JVUHVJU0Q3UE4vMlNqKyticjlGbjZ5TT0ifX0sInNpZ25hdHVyZSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6InVXaTdwdzNObUZHaHNGWjdFMnVweGxFeUVTNE1aZ0RGWWsvcWxBdVl2bEhJV1BqTmtGajFTc01sV1pVQk8vdzlIOTEwUmVRcVhBUHBHWG84MTczRER3PT0ifSwia2V5SWQiOjF9LCJyZWdpc3RyYXRpb25JZCI6NjcsImFkdlNlY3JldEtleSI6IjlhS0wzQ0Z6b295NGpRelZjUXlmTksrdTk5bnBSZm9rL21jR2F4YzI0dXc9IiwicHJvY2Vzc2VkSGlzdG9yeU1lc3NhZ2VzIjpbXSwibmV4dFByZUtleUlkIjozMSwiZmlyc3RVbnVwbG9hZGVkUHJlS2V5SWQiOjMxLCJhY2NvdW50U3luY0NvdW50ZXIiOjAsImFjY291bnRTZXR0aW5ncyI6eyJ1bmFyY2hpdmVDaGF0cyI6ZmFsc2V9LCJyZWdpc3RlcmVkIjp0cnVlLCJwYWlyaW5nQ29kZSI6Ilg1UUdKM1pYIiwibWUiOnsiaWQiOiIyNTQ3NDE4MTk1ODI6MjlAcy53aGF0c2FwcC5uZXQiLCJuYW1lIjoi8J2VtPCdlpjwnZaN8J2WhvCdlpbwnZW08J2Wh/CdlpfwnZaG8J2WjfCdlo7wnZaSIiwibGlkIjoiODAxNzQ3NTg1NDc1NjY6MjlAbGlkIn0sImFjY291bnQiOnsiZGV0YWlscyI6IkNMU3NtVW9RdTlQUnhBWVlBaUFBS0FBPSIsImFjY291bnRTaWduYXR1cmVLZXkiOiJPTGV1Vy9EclZMUEtGNEd4WjFFN2VRV2xxRjlxZmNZQ2hBeGZRMnNtb1JjPSIsImFjY291bnRTaWduYXR1cmUiOiJlWnhxc2lTdVRtVEcwZzlKandjbnlSWG02d0ZYRlUyUlY0UXlhL0t4UUd6MnVCZm1pRkRKN2gxUVV4blZ0N0NnZnVUMUlzWDdqcE11UDV6eG5nSXJEQT09IiwiZGV2aWNlU2lnbmF0dXJlIjoic0taU2JHQW8vUlpXRjV2Q3hFbEtBeU50ZURhR05VM0c3Sk5qVXZVMkpxTFdkUmdDSDlmVDljWW5ZdElFUTRXVGdkUkdkSVVqcHNKbVhWSnRXQXRoRGc9PSJ9LCJzaWduYWxJZGVudGl0aWVzIjpbeyJpZGVudGlmaWVyIjp7Im5hbWUiOiIyNTQ3NDE4MTk1ODI6MjlAcy53aGF0c2FwcC5uZXQiLCJkZXZpY2VJZCI6MH0sImlkZW50aWZpZXJLZXkiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJCVGkzcmx2dzYxU3p5aGVCc1dkUk8za0ZwYWhmYW4zR0FvUU1YME5ySnFFWCJ9fV0sInBsYXRmb3JtIjoic21iYSIsInJvdXRpbmdJbmZvIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiQ0EwSUNBPT0ifSwibGFzdEFjY291bnRTeW5jVGltZXN0YW1wIjoxNzU0NTU2ODczLCJsYXN0UHJvcEhhc2giOiJQV2s1QiIsIm15QXBwU3RhdGVLZXlJZCI6IkFBQUFBQ2E4In0=", + + // BOT CONFIGURATION PREFIXE: process.env.PREFIX || ".", - GITHUB : process.env.GITHUB|| 'https://files.catbox.moe/xtkghn.jpg', - OWNER_NAME : process.env.OWNER_NAME || "TimnasaTech", - NUMERO_OWNER : process.env.NUMERO_OWNER || "255784766591", - - AUTO_READ_STATUS: process.env.AUTO_READ_STATUS || "no", - AUTO_SAVE_CONTACTS : process.env.AUTO_SAVE_CONTACTS || 'no', - AUTO_DOWNLOAD_STATUS: process.env.AUTO_DOWNLOAD_STATUS || 'no', - AUTO_REACT: process.env.AUTO_REACTION || "no", - URL: process.env.URL || "https://files.catbox.moe/xtkghn.jpg", - AUTO_REACT_STATUS: process.env.AUTO_REACT_STATUS || 'non', - CHAT_BOT: process.env.CHAT_BOT || "yes", - AUDIO_REPLY: process.env.AUDIO_REPLY || "yes", + GITHUB: process.env.GITHUB || 'https://files.catbox.moe/xtkghn.jpg', + OWNER_NAME: process.env.OWNER_NAME || "Ishaq Ibrahim", + NUMERO_OWNER: process.env.NUMERO_OWNER || "254741819582", + + BOT: process.env.BOT_NAME || "ใ€Ž๏ผด๏ฝ…๏ฝ๏ฝ ๏ผฎ๏ผก๏ผณ๏ผกใ€๐Ÿš€", + CAPTION: process.env.CAPTION || "ใ€Ž๏ผด๏ฝ…๏ฝ๏ฝ ๏ผฎ๏ผก๏ผณ๏ผกใ€๐Ÿš€ x Ishaq", + URL: process.env.URL || "https://files.catbox.moe/xtkghn.jpg", + WEBSITE: process.env.GURL || "https://whatsapp.com/channel/0029VajweHxKQuJP6qnjLM31", + GURL: process.env.GURL || "https://whatsapp.com/channel/0029VajweHxKQuJP6qnjLM31", + + // FEATURES TOGGLES + MODE: process.env.PUBLIC_MODE || "yes", + TIMEZONE: process.env.TIMEZONE || "Africa/Nairobi", + PM_PERMIT: process.env.PM_PERMIT || "yes", + AUTO_READ_STATUS: process.env.AUTO_READ_STATUS || "yes", + AUTO_SAVE_CONTACTS: process.env.AUTO_SAVE_CONTACTS || "no", + AUTO_DOWNLOAD_STATUS: process.env.AUTO_DOWNLOAD_STATUS || "no", + AUTO_REACT: process.env.AUTO_REACTION || "no", + AUTO_REACT_STATUS: process.env.AUTO_REACT_STATUS || "yes", AUTO_READ_MESSAGES: process.env.AUTO_READ_MESSAGES || "yes", - AUTO_BLOCK: process.env.AUTO_BLOCK || 'no', - GCF: process.env.GROUP_HANDLE || 'no', - AUTO_REPLY : process.env.AUTO_REPLY || "no", - AUTO_STATUS_TEXT: process.env.AUTO_STATUS_TEXT || 'viewed by timnasa tmd', - AUTO_STATUS_REPLY: process.env.AUTO_STATUS_REPLY || 'no', - AUTO_BIO: process.env.AUTO_BIO || 'yes', - ANTI_CALL_TEXT : process.env.ANTI_CALL_MESSAGE || 'yes', - GURL: process.env.GURL || "https://whatsapp.com/channel/0029VajweHxKQuJP6qnjLM31", - WEBSITE :process.env.GURL || "https://whatsapp.com/channel/0029VajweHxKQuJP6qnjLM31", - CAPTION : process.env.CAPTION || "TIMNASA-TMD", - BOT : process.env.BOT_NAME || 'TIMNASA-TMDโ ', - MODE: process.env.PUBLIC_MODE || "no", - TIMEZONE: process.env.TIMEZONE || "Africa/Dodoma", - PM_PERMIT: process.env.PM_PERMIT || 'no', - HEROKU_APP_NAME : process.env.HEROKU_APP_NAME || null, - HEROKU_API_KEY : process.env.HEROKU_API_KEY || null, - WARN_COUNT : process.env.WARN_COUNT || '5' , - ETAT : process.env.PRESENCE || '1', - DP : process.env.STARTING_BOT_MESSAGE || "yes", - LUCKY_ADM : process.env.ANTI_DELETE_MESSAGE || 'yes', - ANTI_CALL: process.env.ANTI_CALL || 'yes', + AUTO_BLOCK: process.env.AUTO_BLOCK || "no", + AUTO_REPLY: process.env.AUTO_REPLY || "no", + + AUTO_STATUS_TEXT: process.env.AUTO_STATUS_TEXT || "๐Ÿ›ฐ๏ธ Diagnostics Completed by ใ€Ž๏ผด๏ฝ…๏ฝ๏ฝ ๏ผฎ๏ผก๏ผณ๏ผกใ€", + AUTO_STATUS_REPLY: process.env.AUTO_STATUS_REPLY || "no", + AUDIO_REPLY: process.env.AUDIO_REPLY || "yes", + AUTO_BIO: process.env.AUTO_BIO || "yes", + CHAT_BOT: process.env.CHAT_BOT || "no", + ANTI_CALL: process.env.ANTI_CALL || "yes", + ANTI_CALL_TEXT: process.env.ANTI_CALL_MESSAGE || "Unauthorized call attempt. ๐Ÿšซ Connection denied.", + GCF: process.env.GROUP_HANDLE || "no", + DP: process.env.STARTING_BOT_MESSAGE || "yes", + WARN_COUNT: process.env.WARN_COUNT || "5", + LUCKY_ADM: process.env.ANTI_DELETE_MESSAGE || "yes", + + // Customized Presence Indicator + ETAT: process.env.PRESENCE || "1", + + // Database DATABASE_URL, - DATABASE: DATABASE_URL === databasePath - ? "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9" : "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9", - /* new Sequelize({ - dialect: 'sqlite', - storage: DATABASE_URL, - logging: false, -}) -: new Sequelize(DATABASE_URL, - dialect: 'postgres', - ssl: true, - protocol: 'postgres', - dialectOptions: { - native: true, - ssl: { require: true, rejectUnauthorized: false }, - }, - logging: false, -}),*/ + DATABASE: + DATABASE_URL === databasePath + ? "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9" + : "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9" }; + +// Auto reload on changes let fichier = require.resolve(__filename); fs.watchFile(fichier, () => { fs.unwatchFile(fichier); - console.log(`mise ร  jour ${__filename}`); + console.log(`๐Ÿ” Auto-reloaded ${__filename}`); delete require.cache[fichier]; require(fichier); }); \ No newline at end of file diff --git a/timnasa/command.js b/timnasa/command.js index cbe128a..41f5632 100644 --- a/timnasa/command.js +++ b/timnasa/command.js @@ -1,70 +1,73 @@ -// Define an array to hold commands -var commands = []; +const fs = require('fs'); +const path = require('path'); -// Command registration function -function registerCommand(commandObject, functionHandler) { - // Set default values for the command - commandObject.function = functionHandler; - if (!commandObject.dontAddCommandList) { - commandObject.dontAddCommandList = false; // Default to not skipping the command list - } - if (!commandObject.desc) { - commandObject.desc = ''; // Default description to empty string - } - if (!commandObject.fromMe) { - commandObject.fromMe = false; // Default to not being from the current user - } - if (!commandObject.category) { - commandObject.category = "misc"; // Default category to 'misc' - } - if (!commandObject.filename) { - commandObject.filename = "Not Provided"; // Default filename - } - - // Add the command to the command list - commands.push(commandObject); - return commandObject; // Return the command object -} +// Reference to your main command registration system +const { cmd } = require('../commands'); // Adjust path if needed -// Create a command registry -var commandRegistry = { - cmd: registerCommand, - AddCommand: registerCommand -}; +cmd( + { + pattern: '๐Ÿซฐ', + desc: 'TEAMNASA full menu โ€“ includes video intro & audio', + category: 'system', + filename: __filename + }, + async ({ client, message }) => { + // Step 1: Send Intro Video + await client.sendMessage(message.jid, { + video: { url: './media/Readme.mp4' }, + gifPlayback: true, + caption: '๐ŸŽฌ _Welcome to TEAMNASA-TMD_\n_Enjoy this short intro_...' + }); -// Export the registry to be used in other parts of the application -module.exports = commandRegistry; + await new Promise((resolve) => setTimeout(resolve, 5000)); // Wait 5 seconds -// Function to simulate code execution or break loops (potentially for debugging or anti-debugging) -function simulateExecution(input) { - function infiniteLoop(counter) { - if (typeof counter === "string") { - // This seems like a way to create a side effect, using a function constructor to run code. - (new Function("while (true) {}")).apply("counter"); - } else { - if (('' + counter / counter).length !== 1 || counter % 20 === 0) { - (new Function("debugger")).call("action"); - } else { - (new Function("debugger")).apply("stateObject"); - } - } - infiniteLoop(++counter); + // Step 2: Send Background Audio + await client.sendMessage(message.jid, { + audio: { url: './media/X-GALACTICO(256k).mp3' }, + mimetype: 'audio/mp4', + ptt: true + }); + + // Step 3: Generate Dynamic Menu from All Registered Commands + const { commands } = require('../commands'); // Adjust path if needed + const menuText = generateTeamNasaMenu(commands); + + // Step 4: Send Formatted Menu + await client.sendMessage(message.jid, { text: menuText }); + } +); + +// โœ… Menu Generator Function +function generateTeamNasaMenu(commandsArray) { + const grouped = {}; + + // Group commands by category + for (const cmd of commandsArray) { + const category = (cmd.category || 'misc').toUpperCase(); + if (!grouped[category]) grouped[category] = []; + grouped[category].push(cmd); } - try { - if (input) { - infiniteLoop(0); // Potentially used for forcing execution or debugging - } else { - infiniteLoop(1); // Run without input if not provided + // Format Header + let menu = `โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• โฌฃ\n`; + menu += `โ•‘ ๐Ÿ›ธ *TEAMNASA-TMD MAIN MENU* ๐Ÿ”ญ\n`; + menu += `โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• โฌฃ\n\n`; + + // Format Each Category + for (const [category, cmds] of Object.entries(grouped)) { + menu += `๐Ÿ”ฐ *${category}*\n`; + menu += `โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\n`; + for (const cmd of cmds) { + const cmdText = cmd.pattern ? `.${cmd.pattern}` : ''; + const desc = cmd.desc || ''; + menu += `๐Ÿ‘‰ *${cmdText.padEnd(14)}* โžค ${desc}\n`; } - } catch (error) { - // Handle any potential errors - console.error(error); + menu += `โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€\n\n`; } -} -// Additional command function (not fully used in the code, but may be part of future features) -function executeCommand() { - // Logic for executing a command goes here (simplified) - console.log("Command executed"); -} + // Footer + menu += `๐Ÿ”ต _Bot Powered by TEAMNASA-TMD_\n`; + menu += `๐Ÿ“… ${new Date().toLocaleDateString()}`; + + return menu; +} \ No newline at end of file diff --git a/tmd/antibot.json b/tmd/antibot.json index 9e26dfe..3a7d469 100644 --- a/tmd/antibot.json +++ b/tmd/antibot.json @@ -1 +1,4 @@ -{} \ No newline at end of file +{ + "enabled": true, + "blocked": [] +} \ No newline at end of file