This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, isAdmin, jidToNum } = require("../lib/") | |
const mutedUsers = new Set() | |
// Comando para silenciar usuario | |
bot( | |
{ | |
pattern: "silent ?(.*)", | |
fromMe: true, | |
desc: "Silencia a un usuario y elimina sus mensajes automáticamente", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot } = require('../lib/'); | |
const path = require('path'); | |
const fs = require('fs'); | |
// Directorio de imágenes | |
const imageDirectory = path.join(__dirname, 'images'); | |
// Nombre del archivo de imagen | |
const imageFileName = 'acolores.jpg'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot } = require('../lib/'); | |
const path = require('path'); | |
const fs = require('fs'); | |
// Directorio de imágenes | |
const imageDirectory = path.join(__dirname, 'images'); | |
// Mapa de comandos a nombres de archivos de imagen | |
const imageMap = { | |
'acolores': 'acolores.jpg', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'ima', | |
fromMe: true, | |
desc: 'Says Hello and sends a specific image', | |
type: 'misc', | |
}, | |
async (message, match) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot } = require('../lib'); | |
bot( | |
{ | |
pattern: 'ima', | |
fromMe: true, | |
desc: 'Send a specific image as media', | |
type: 'misc', | |
}, | |
async (message, match) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'ima', | |
fromMe: true, | |
desc: 'Says Hello and sends a specific image', | |
type: 'misc', | |
}, | |
async (message, match) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot } = require('../lib/'); | |
bot({ | |
pattern: 'bee', | |
fromMe: true, | |
desc: 'Respond with bee2', | |
type: 'whatsapp' | |
}, async (message, match) => { | |
try { | |
// Enviamos la respuesta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { VERSION } = require('../config') | |
const bot = require('../lib/events') | |
const { | |
textToStylist, | |
PREFIX, | |
getUptime, | |
PLUGINS, | |
getRam, | |
rmComma, | |
jidToNum, |