Initial simple client implementation

This commit is contained in:
Pedro Lopez
2019-02-17 00:03:07 -04:00
parent 372187d275
commit bcbd16f196
8 changed files with 538 additions and 0 deletions

19
example.js Normal file
View File

@@ -0,0 +1,19 @@
const { Client } = require('./src')
const client = new Client();
client.initialize();
client.on('qr', (qr) => {
console.log('QR RECEIVED', qr);
});
client.on('authenticated', () => {
console.log('AUTHENTICATED');
});
client.on('ready', () => {
console.log('READY');
client.destroy();
});