perf: baileys⬆️6.7.19

main
LiaoYijun 7 months ago
parent 5317703635
commit ed19f2ff3d

@ -2,13 +2,15 @@ const { createWhatsApp } = require('./core/baileys');
const waEmitter = require('./core/emitter');
const go = async () => {
waEmitter.on('connection:open', event => {
console.log('connection-open: ', event);
waEmitter.emit('request.8618777396951.send.message', { to: '120363389309889162@g.us', externalId: new Date().getTime(), text: 'connection-open: ' + new Date().toUTCString() });
});
waEmitter.on('creds:update', event => {
console.log('creds-update: ', event);
});
const whatsApp = await createWhatsApp('8618777396951');
whatsApp.start();
setTimeout(() => {
console.log('sending message...');
waEmitter.emit('request.8618777396951.send.message', { to: '8613317835586', externalId: new Date().getTime(), text: 'Hello World: ' + new Date().toUTCString() });
}, 5000);
}
go();

File diff suppressed because it is too large Load Diff

@ -20,8 +20,8 @@
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.6.0",
"husky": "2.3.0",
"fs-extra": "^11.3.1",
"husky": "2.3.0",
"nodemon": "1.19.0",
"prettier": "^3.4.2"
},
@ -29,7 +29,7 @@
"@fullstax/p-retry": "^6.2.0-patch.4",
"@koa/cors": "2.2.3",
"@koa/multer": "^3.0.2",
"@whiskeysockets/baileys": "^6.7.9",
"@whiskeysockets/baileys": "^6.7.19",
"axios-retry": "^4.5.0",
"dotenv": "8.0.0",
"joi": "14.3.1",
@ -42,6 +42,7 @@
"log4js": "^6.9.1",
"multer": "^1.4.5-lts.1",
"mysql2": "^3.11.5",
"node-cache": "^5.1.2",
"sequelize": "^6.37.5",
"uuid": "3.3.2",
"ws": "^8.18.0"

Loading…
Cancel
Save