Replies: 1 comment 1 reply
-
try install the puppeteer and chromiun npm i puppeteer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I updated venom-bot but now it is no longer exporting the qrcode, it keeps giving the error: Unable to load the sleep module (no animations available)
You're up to date 🎉🎉🎉
✖ Error in open browser....
Error in open browser....
I made another project from scratch and used the default template from the example and it gave the same error.
// Supports ES6
// import { create, Whatsapp } from 'venom-bot';
const venom = require("venom-bot");
const fs = require('fs');
venom
.create(
'sessionName',
(base64Qr, asciiQR, attempts, urlCode) => {
console.log(asciiQR); // Optional to log the QR in the terminal
var matches = base64Qr.match(/^data:([A-Za-z-+/]+);base64,(.+)$/),
response = {};
)
.then((client) => {
start(client);
})
.catch((erro) => {
console.log(erro);
});
function start(client) {
client.onMessage((message) => {
if (message.body === "Hi" && message.isGroupMsg === false) {
client
.sendText(message.from, "Welcome Venom 🕷")
.then((result) => {
console.log("Result: ", result); //return object success
})
.catch((erro) => {
console.error("Error when sending: ", erro); //return object error
});
}
});
}
Beta Was this translation helpful? Give feedback.
All reactions