wabot
Version:
Whatsapp Bot Module for automate response and interact whit users
29 lines (25 loc) • 581 B
JavaScript
const WABOT = require('../../../src/WABOT');
const wabot = new WABOT({
intentsConfig: {
plugins: {
folder: "../plugins",
plugins: ['makeZombie']
},
commands: [
{
"name": "makeZombie",
"exact": ["@makezombie", "@zombie", "zombie", "makezombie"]
}
]
}
});
wabot.on('makeZombie', (res) => {
wabot.makeZombie({
"idChat": res.data.from,
"photo": res.media
});
});
wabot.on('ready', (session) => {
console.log('Ready');
});
wabot.start();