Skip to content

Commit

Permalink
๐น๐ธ๐‘๐ผ๐‘‹-๐ต๐‘‚๐‘‡-๐ถ๐ท
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilsmac authored Nov 6, 2023
1 parent 1b3ccdd commit b29b417
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main (5).js โ†’ main.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ loadChatgptDB();

/* ------------------------------------------------*/

global.authFile = `MysticSession`;
global.authFile = `FenixSession`;
const {state, saveState, saveCreds} = await useMultiFileAuthState(global.authFile);
const msgRetryCounterMap = (MessageRetryMap) => { };
const msgRetryCounterCache = new NodeCache()
Expand All @@ -124,7 +124,7 @@ const connectionOptions = {
logger: pino({ level: 'silent' }),
printQRInTerminal: !pairingCode,
mobile: useMobile,
browser: ['Chrome (Linux)', '', ''],
browser: ['FENIX-BOT-CD', '', ''],
auth: {
creds: state.creds,
keys: makeCacheableSignalKeyStore(state.keys, Pino({ level: "fatal" }).child({ level: "fatal" })),
Expand Down Expand Up @@ -152,16 +152,16 @@ global.conn = makeWASocket(connectionOptions);
numeroTelefono = phoneNumber.replace(/[^0-9]/g, '')

if (!Object.keys(PHONENUMBER_MCC).some(v => numeroTelefono.startsWith(v))) {
console.log(chalk.bgBlack(chalk.redBright("Comience con el cรณdigo de paรญs de su nรบmero de WhatsApp, Ejemplo: +5219992095479")))
console.log(chalk.bgBlack(chalk.redBright("Comience con el cรณdigo de paรญs de su nรบmero de WhatsApp, Ejemplo: +502501011399")))
process.exit(0)
}
} else {
numeroTelefono = await question(chalk.bgBlack(chalk.greenBright(`Por favor, escriba su nรบmero de WhatsApp ๐Ÿ˜\nPor ejemplo: +5219992095479 : `)))
numeroTelefono = await question(chalk.bgBlack(chalk.greenBright(`Por favor, escriba su nรบmero de WhatsApp ๐Ÿ˜\nPor ejemplo: +50250101139 : `)))
numeroTelefono = numeroTelefono.replace(/[^0-9]/g, '')
if (!Object.keys(PHONENUMBER_MCC).some(v => numeroTelefono.startsWith(v))) {
console.log(chalk.bgBlack(chalk.redBright("Comience con el cรณdigo de paรญs de su nรบmero de WhatsApp, Ejemplo: +5219992095479")))
console.log(chalk.bgBlack(chalk.redBright("Comience con el cรณdigo de paรญs de su nรบmero de WhatsApp, Ejemplo: +50250101139")))

numeroTelefono = await question(chalk.bgBlack(chalk.greenBright(`Por favor, escriba su nรบmero de WhatsApp ๐Ÿ˜\nPor ejemplo: +5219992095479 : `)))
numeroTelefono = await question(chalk.bgBlack(chalk.greenBright(`Por favor, escriba su nรบmero de WhatsApp ๐Ÿ˜\nPor ejemplo: +50250101139 : `)))
numeroTelefono = numeroTelefono.replace(/[^0-9]/g, '')
rl.close()
}
Expand Down Expand Up @@ -221,13 +221,13 @@ function clearTmp() {

function purgeSession() {
let prekey = []
let directorio = readdirSync("./MysticSession")
let directorio = readdirSync("./FenixSession")
let filesFolderPreKeys = directorio.filter(file => {
return file.startsWith('pre-key-') /*|| file.startsWith('session-') || file.startsWith('sender-') || file.startsWith('app-') */
})
prekey = [...prekey, ...filesFolderPreKeys]
filesFolderPreKeys.forEach(files => {
unlinkSync(`./MysticSession/${files}`)
unlinkSync(`./FenixSession/${files}`)
})
}

Expand All @@ -252,7 +252,7 @@ console.log(chalk.bold.red(`=> Algo salio mal durante la eliminaciรณn, archivos
}}

function purgeOldFiles() {
const directories = ['./MysticSession/', './jadibts/']
const directories = ['./FenixSession/', './jadibts/']
const oneHourAgo = Date.now() - (60 * 60 * 1000)
directories.forEach(dir => {
readdirSync(dir, (err, files) => {
Expand Down Expand Up @@ -512,7 +512,7 @@ setInterval(async () => {
if (stopped === 'close' || !conn || !conn.user) return;
const _uptime = process.uptime() * 1000;
const uptime = clockString(_uptime);
const bio = `๐Ÿค– แด›ษชแด‡แดแด˜แด แด€แด„แด›ษชแด แด: ${uptime} โ”ƒ ๐Ÿ‘‘ ส™ส ส™ส€แดœษดแด sแดส™ส€ษชษดแด โ”ƒ ๐Ÿ”— แด„แดœแด‡ษดแด›แด€s แดา“แด„: https://www.atom.bio/theshadowbrokers-team`;
const bio = `โฅ๏ธŽ${packname} ๐‘ป๐‘ฐ๐‘ฌ๐‘ด๐‘ท๐‘ถ ๐‘จ๐‘ช๐‘ป๐‘ฐ๐‘ฝ๐‘ถ ๐ŸŒบ${uptime}๐ŸŒบ ๐‘ช๐‘น๐‘ฌ๐‘จ๐‘ซ๐‘ถ๐‘น ๐‘พ๐‘ฐ๐‘ณ๐‘บ๐‘ด๐‘จ๐‘ชใ‚ท๏ธŽ โ’ธ๏ธŽโ’น๏ธŽ โ€ข ๐ผ ๐ฟ๐‘‚๐‘‰๐ธ ๐‘Œ๐‘‚๐‘ˆโ™ก๏ธŽ`;
await conn.updateProfileStatus(bio).catch((_) => _);
}, 60000);
function clockString(ms) {
Expand Down

0 comments on commit b29b417

Please sign in to comment.