Skip to content

Commit

Permalink
Cambio a Mod Mistico
Browse files Browse the repository at this point in the history
  • Loading branch information
weskerty committed Oct 18, 2024
1 parent b7aa511 commit dedf5db
Show file tree
Hide file tree
Showing 55 changed files with 257 additions and 257 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://cafirexos.com','https://boxmineworld.com','https://github.com/BrunoSobrino/TheMystic-Bot-MD']
custom: ['https://cafirexos.com','https://boxmineworld.com','https://github.com/BrunoSobrino/MysticMOD']
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
<p align="center">
<img width="180px" src="https://i.ibb.co/Qn1W6cP/image.png" align="center"/>
<h2 align="center">TheMystic-Bot-MD</h2>
<h2 align="center">MysticMOD</h2>
<p align="center">Un chatbot automatizado para WhatsApp basado en Node.js, que permite realizar múltiples funciones y personalizaciones en la plataforma.</p>
</p>

<p align="center">
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/graphs/contributors">
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/BrunoSobrino/TheMystic-Bot-MD?style=for-the-badge" />
<a href="https://github.com/BrunoSobrino/MysticMOD/graphs/contributors">
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/BrunoSobrino/MysticMOD?style=for-the-badge" />
</a>
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/issues">
<img alt="GitHub Issues" src="https://img.shields.io/github/issues/BrunoSobrino/TheMystic-Bot-MD?style=for-the-badge" />
<a href="https://github.com/BrunoSobrino/MysticMOD/issues">
<img alt="GitHub Issues" src="https://img.shields.io/github/issues/BrunoSobrino/MysticMOD?style=for-the-badge" />
</a>
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/pulls">
<img alt="GitHub Pull Requests" src="https://img.shields.io/github/issues-pr/BrunoSobrino/TheMystic-Bot-MD?style=for-the-badge" />
<a href="https://github.com/BrunoSobrino/MysticMOD/pulls">
<img alt="GitHub Pull Requests" src="https://img.shields.io/github/issues-pr/BrunoSobrino/MysticMOD?style=for-the-badge" />
</a>
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/commits">
<img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/BrunoSobrino/TheMystic-Bot-MD?style=for-the-badge" />
<a href="https://github.com/BrunoSobrino/MysticMOD/commits">
<img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/BrunoSobrino/MysticMOD?style=for-the-badge" />
</a>
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD">
<img alt="GitHub Stars" src="https://img.shields.io/github/stars/BrunoSobrino/TheMystic-Bot-MD?style=for-the-badge" />
<a href="https://github.com/BrunoSobrino/MysticMOD">
<img alt="GitHub Stars" src="https://img.shields.io/github/stars/BrunoSobrino/MysticMOD?style=for-the-badge" />
</a>
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/fork">
<img alt="GitHub Forks" src="https://img.shields.io/github/forks/BrunoSobrino/TheMystic-Bot-MD?style=for-the-badge" />
<a href="https://github.com/BrunoSobrino/MysticMOD/fork">
<img alt="GitHub Forks" src="https://img.shields.io/github/forks/BrunoSobrino/MysticMOD?style=for-the-badge" />
</a>
</p>

<p align="center">
<a href="https://api.whatsapp.com/send?phone=+5219992843881&text=&text=.menu">Demo</a>
·
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/issues/new?assignees=&labels=Bug">Reportar un Bug</a>
<a href="https://github.com/BrunoSobrino/MysticMOD/issues/new?assignees=&labels=Bug">Reportar un Bug</a>
·
<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/issues/new?assignees=&labels=Enhancement">Solicitar una Característica</a>
<a href="https://github.com/BrunoSobrino/MysticMOD/issues/new?assignees=&labels=Enhancement">Solicitar una Característica</a>
</p>

<!-- <p align="center">
Expand Down Expand Up @@ -122,16 +122,16 @@
En esta sección encontrarás **botones de despliegue** que te permitirán implementar el proyecto en distintos entornos con un solo clic. Este proceso es **automático** y no requiere configuraciones manuales adicionales. Simplemente selecciona la plataforma deseada y haz clic en el botón correspondiente para **desplegar** tu proyecto de manera rápida y sencilla.

[![Open in Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?skip_quickstart=true&machine=basicLinux32gb&repo=514876515&ref=master&geo=EuropeWest)
[![Deploy to Glitch](https://binbashbanana.github.io/deploy-buttons/buttons/remade/glitch.svg)](https://glitch.com/edit/#!/import/github/BrunoSobrino/TheMystic-Bot-MD)
[![Deploy to Heroku](https://binbashbanana.github.io/deploy-buttons/buttons/remade/heroku.svg)](https://www.heroku.com/deploy?template=https://github.com/BrunoSobrino/TheMystic-Bot-MD)
[![Deploy to Koyeb](https://binbashbanana.github.io/deploy-buttons/buttons/remade/koyeb.svg)](https://app.koyeb.com/deploy?type=git&name=themystic-bot-md&repository=https://github.com/BrunoSobrino/TheMystic-Bot-MD)
[![Run on Repl.it](https://binbashbanana.github.io/deploy-buttons/buttons/remade/replit.svg)](https://repl.it/github/BrunoSobrino/TheMystic-Bot-MD)
[![Deploy to Render](https://binbashbanana.github.io/deploy-buttons/buttons/remade/render.svg)](https://dashboard.render.com/blueprint/new?repo=https://github.com/BrunoSobrino/TheMystic-Bot-MD)
[![Deploy to Termux](https://img.shields.io/badge/Android-3DDC84?style=for-the-badge&logo=android&logoColor=white)](https://brunosobrino.github.io/TheMystic-Bot-MD/)
[![Deploy to Linux](https://img.shields.io/badge/Linux-black?style=for-the-badge&logo=linux&logoColor=white)](https://brunosobrino.github.io/TheMystic-Bot-MD/)
[![Deploy to Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white)](https://brunosobrino.github.io/TheMystic-Bot-MD/)
[![Deploy to Glitch](https://binbashbanana.github.io/deploy-buttons/buttons/remade/glitch.svg)](https://glitch.com/edit/#!/import/github/BrunoSobrino/MysticMOD)
[![Deploy to Heroku](https://binbashbanana.github.io/deploy-buttons/buttons/remade/heroku.svg)](https://www.heroku.com/deploy?template=https://github.com/BrunoSobrino/MysticMOD)
[![Deploy to Koyeb](https://binbashbanana.github.io/deploy-buttons/buttons/remade/koyeb.svg)](https://app.koyeb.com/deploy?type=git&name=MysticMOD&repository=https://github.com/BrunoSobrino/MysticMOD)
[![Run on Repl.it](https://binbashbanana.github.io/deploy-buttons/buttons/remade/replit.svg)](https://repl.it/github/BrunoSobrino/MysticMOD)
[![Deploy to Render](https://binbashbanana.github.io/deploy-buttons/buttons/remade/render.svg)](https://dashboard.render.com/blueprint/new?repo=https://github.com/BrunoSobrino/MysticMOD)
[![Deploy to Termux](https://img.shields.io/badge/Android-3DDC84?style=for-the-badge&logo=android&logoColor=white)](https://brunosobrino.github.io/MysticMOD/)
[![Deploy to Linux](https://img.shields.io/badge/Linux-black?style=for-the-badge&logo=linux&logoColor=white)](https://brunosobrino.github.io/MysticMOD/)
[![Deploy to Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white)](https://brunosobrino.github.io/MysticMOD/)

<!-- [![Deploy to Vercel](https://binbashbanana.github.io/deploy-buttons/buttons/remade/vercel.svg)](https://vercel.com/new/clone?repository-url=https://github.com/BrunoSobrino/TheMystic-Bot-MD) -->
<!-- [![Deploy to Vercel](https://binbashbanana.github.io/deploy-buttons/buttons/remade/vercel.svg)](https://vercel.com/new/clone?repository-url=https://github.com/BrunoSobrino/MysticMOD) -->

# Soporte y Comunidad

Expand All @@ -154,8 +154,8 @@ En este espacio podrás encontrar diversas **comunidades de ayuda** donde podrá

Conoce a los **colaboradores** que han aportado al desarrollo de este proyecto. Su apoyo ha sido clave para **mejorar** y **expandir** las funcionalidades del proyecto.

<a href="https://github.com/BrunoSobrino/TheMystic-Bot-MD/graphs/contributors">
<img src="https://contrib.rocks/image?repo=BrunoSobrino/TheMystic-Bot-MD" />
<a href="https://github.com/BrunoSobrino/MysticMOD/graphs/contributors">
<img src="https://contrib.rocks/image?repo=BrunoSobrino/MysticMOD" />
</a>

## Agradecimientos
Expand Down
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TheMystic-Bot-MD",
"name": "MysticMOD",
"description": "Un chatbot automatizado para WhatsApp basado en Node.js, que permite realizar múltiples funciones y personalizaciones en la plataforma.",
"repository": "https://github.com/BrunoSobrino/TheMystic-Bot-MD",
"logo": "https://i.ibb.co/Qn1W6cP/image.png"
"repository": "https://github.com/weskerty/TheMysticMOD",
"logo": "https://em-content.zobj.net/source/telegram/386/crystal-ball_1f52e.webp"
}
4 changes: 2 additions & 2 deletions handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ export async function participantsUpdate({ id, participants, action }) {
if (chat.welcome && !chat?.isBanned) {
const groupMetadata = await m?.conn?.groupMetadata(id) || (conn?.chats[id] || {}).metadata;
for (const user of participants) {
let pp = 'https://raw.githubusercontent.com/BrunoSobrino/TheMystic-Bot-MD/master/src/avatar_contact.png';
let pp = 'https://em-content.zobj.net/source/telegram/386/crystal-ball_1f52e.webp';
try {
pp = await m?.conn?.profilePictureUrl(user, 'image');
} catch (e) {
Expand Down Expand Up @@ -1164,7 +1164,7 @@ export async function callUpdate(callUpdate) {
const callmsg = await mconn?.conn?.reply(nk.from, `Hola *@${nk.from.split('@')[0]}*, las ${nk.isVideo ? 'videollamadas' : 'llamadas'} no están permitidas, serás bloqueado.\n-\nSi accidentalmente llamaste póngase en contacto con mi creador para que te desbloquee!`, false, { mentions: [nk.from] });
// let data = global.owner.filter(([id, isCreator]) => id && isCreator)
// await this.sendContact(nk.from, data.map(([id, name]) => [id, name]), false, { quoted: callmsg })
const vcard = `BEGIN:VCARD\nVERSION:3.0\nN:;𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑;;;\nFN:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nORG:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nTITLE:\nitem1.TEL;waid=5219992095479:+521 999 209 5479\nitem1.X-ABLabel:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nX-WA-BIZ-DESCRIPTION:[❗] ᴄᴏɴᴛᴀᴄᴛᴀ ᴀ ᴇsᴛᴇ ɴᴜᴍ ᴘᴀʀᴀ ᴄᴏsᴀs ɪᴍᴘᴏʀᴛᴀɴᴛᴇs.\nX-WA-BIZ-NAME:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nEND:VCARD`;
const vcard = `BEGIN:VCARD\nVERSION:3.0\nN:;𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑;;;\nFN:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nORG:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nTITLE:\nitem1.TEL;waid=595972184435:+521 999 209 5479\nitem1.X-ABLabel:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nX-WA-BIZ-DESCRIPTION:[❗] ᴄᴏɴᴛᴀᴄᴛᴀ ᴀ ᴇsᴛᴇ ɴᴜᴍ ᴘᴀʀᴀ ᴄᴏsᴀs ɪᴍᴘᴏʀᴛᴀɴᴛᴇs.\nX-WA-BIZ-NAME:𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑\nEND:VCARD`;
await mconn.conn.sendMessage(nk.from, { contacts: { displayName: '𝐁𝐫𝐮𝐧𝐨 𝐒𝐨𝐛𝐫𝐢𝐧𝐨 👑', contacts: [{ vcard }] } }, { quoted: callmsg });
await mconn.conn.updateBlockStatus(nk.from, 'block');
}
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ async function start(file) {

let numeroTelefono = '';
if (opcion === '2') {
const phoneNumber = await question(chalk.yellowBright.bold('\n—◉ㅤEscriba su número de WhatsApp:\n') + chalk.white.bold('◉ㅤEjemplo: +5219992095479\n—> '));
const phoneNumber = await question(chalk.yellowBright.bold('\n—◉ㅤEscriba su número de WhatsApp:\n') + chalk.white.bold('◉ㅤEjemplo: +595972184435\n—> '));
numeroTelefono = formatearNumeroTelefono(phoneNumber);
if (!esNumeroValido(numeroTelefono)) {
console.log(chalk.bgRed(chalk.white.bold('[ ERROR ] Número inválido. Asegúrese de haber escrito su numero en formato internacional y haber comenzado con el código de país.\n—◉ㅤEjemplo:\n◉ +5219992095479\n')));
console.log(chalk.bgRed(chalk.white.bold('[ ERROR ] Número inválido. Asegúrese de haber escrito su numero en formato internacional y haber comenzado con el código de país.\n—◉ㅤEjemplo:\n◉ +595972184435\n')));
process.exit(0);
}
process.argv.push(numeroTelefono);
Expand Down
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const connectionOptions = {
logger: Pino({ level: 'silent' }),
printQRInTerminal: opcion === '1' || methodCodeQR,
mobile: MethodMobile,
browser: opcion === '1' ? ['TheMystic-Bot-MD', 'Safari', '2.0.0'] : methodCodeQR ? ['TheMystic-Bot-MD', 'Safari', '2.0.0'] : ['Ubuntu', 'Chrome', '20.0.04'],
browser: opcion === '1' ? ['MysticMOD', 'Safari', '2.0.0'] : methodCodeQR ? ['MysticMOD', 'Safari', '2.0.0'] : ['Ubuntu', 'Chrome', '20.0.04'],
auth: {
creds: state.creds,
keys: makeCacheableSignalKeyStore(state.keys, Pino({ level: 'fatal' }).child({ level: 'fatal' })),
Expand Down Expand Up @@ -171,17 +171,17 @@ let numeroTelefono
if (!!phoneNumber) {
numeroTelefono = phoneNumber.replace(/[^0-9]/g, '')
if (!Object.keys(PHONENUMBER_MCC).some(v => numeroTelefono.startsWith(v))) {
console.log(chalk.bgBlack(chalk.bold.redBright("Comience con el código de país de su número de WhatsApp.\nEjemplo: +5219992095479\n")))
console.log(chalk.bgBlack(chalk.bold.redBright("Comience con el código de país de su número de WhatsApp.\nEjemplo: +595972184435\n")))
process.exit(0)
}} else {
while (true) {
numeroTelefono = await question(chalk.bgBlack(chalk.bold.yellowBright('Por favor, escriba su número de WhatsApp.\nEjemplo: +5219992095479\n')))
numeroTelefono = await question(chalk.bgBlack(chalk.bold.yellowBright('Por favor, escriba su número de WhatsApp.\nEjemplo: +595972184435\n')))
numeroTelefono = numeroTelefono.replace(/[^0-9]/g, '')

if (numeroTelefono.match(/^\d+$/) && Object.keys(PHONENUMBER_MCC).some(v => numeroTelefono.startsWith(v))) {
break
} else {
console.log(chalk.bgBlack(chalk.bold.redBright("Por favor, escriba su número de WhatsApp.\nEjemplo: +5219992095479.\n")))
console.log(chalk.bgBlack(chalk.bold.redBright("Por favor, escriba su número de WhatsApp.\nEjemplo: +595972184435.\n")))
}}
rl.close()
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/_antiarab.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TheMystic-Bot-MD@BrunoSobrino - _antiarab.js
// MysticMOD@BrunoSobrino - _antiarab.js


const handler = (m) => m;
Expand Down
2 changes: 1 addition & 1 deletion plugins/_antilink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TheMystic-Bot-MD@BrunoSobrino - _antilink.js
// MysticMOD@BrunoSobrino - _antilink.js


const linkRegex = /chat.whatsapp.com\/([0-9A-Za-z]{20,24})/i;
Expand Down
2 changes: 1 addition & 1 deletion plugins/_antilink2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TheMystic-Bot-MD@BrunoSobrino - _antilink2.js
// MysticMOD@BrunoSobrino - _antilink2.js

// Para configurar o idioma, na raiz do projeto altere o arquivo config.json
// Para configurar el idioma, en la raíz del proyecto, modifique el archivo config.json.
Expand Down
2 changes: 1 addition & 1 deletion plugins/_antiprivado.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TheMystic-Bot-MD@BrunoSobrino - _antiprivado.js
// MysticMOD@BrunoSobrino - _antiprivado.js

export async function before(m, {conn, isAdmin, isBotAdmin, isOwner, isROwner}) {
const datas = global
Expand Down
2 changes: 1 addition & 1 deletion plugins/_antitoxic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TheMystic-Bot-MD@BrunoSobrino - _antitoxic.js
// MysticMOD@BrunoSobrino - _antitoxic.js

// Para configurar o idioma, na raiz do projeto altere o arquivo config.json
// Para configurar el idioma, en la raíz del proyecto, modifique el archivo config.json.
Expand Down
2 changes: 1 addition & 1 deletion plugins/_antitrabas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
TheMystic-Bot-MD@BrunoSobrino - _antitrabas.js
MysticMOD@BrunoSobrino - _antitrabas.js
By @NeKosmic || https://github.com/NeKosmic/
**/

Expand Down
2 changes: 1 addition & 1 deletion plugins/_detectEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function before(m, {conn, participants}) {
if (!m.messageStubType || !m.isGroup) return !0;
const groupName = (await conn.groupMetadata(m.chat)).subject;
const groupAdmins = participants.filter((p) => p.admin);
const pp = await conn.profilePictureUrl(m.chat, 'image').catch((_) => null) || 'https://raw.githubusercontent.com/BrunoSobrino/TheMystic-Bot-MD/master/src/avatar_contact.png';
const pp = await conn.profilePictureUrl(m.chat, 'image').catch((_) => null) || 'https://em-content.zobj.net/source/telegram/386/crystal-ball_1f52e.webp';
const img = await (await fetch(pp)).buffer();
const chat = global.db.data.chats[m.chat];
const mentionsString = [m.sender, m.messageStubParameters[0], ...groupAdmins.map((v) => v.id)];
Expand Down
2 changes: 1 addition & 1 deletion plugins/_modoIA.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ handler.before = async (m) => {
let textodem = m.text;
const name = mconn.conn.getName(m.sender)
const namedem = `${name || 'Sin definir'}`
const sytm = await fetch(`https://raw.githubusercontent.com/BrunoSobrino/TheMystic-Bot-MD/master/src/JSON/chatgpt_indicciones.txt`).then(v => v.text());
const sytm = await fetch(`https://raw.githubusercontent.com/BrunoSobrino/MysticMOD/master/src/JSON/chatgpt_indicciones.txt`).then(v => v.text());
const sistema1 = sytm.replace('@name', namedem)
const sistema2 = 'Tu seras The Mystic - Bot - MD, un bot de WhatsApp creado por Bruno Sobrino';
try {
Expand Down
Loading

0 comments on commit dedf5db

Please sign in to comment.