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

24
src/util/Constants.js Normal file
View File

@@ -0,0 +1,24 @@
'use strict';
exports.WhatsWebURL = 'https://web.whatsapp.com/'
exports.UserAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36';
exports.DefaultOptions = {
puppeteer: {
headless: true
}
}
exports.Status = {
INITIALIZING: 0,
AUTHENTICATING: 1,
READY: 3
}
exports.Events = {
AUTHENTICATED: 'authenticated',
READY: 'ready',
MESSAGE_CREATE: 'message',
QR_RECEIVED: 'qr'
}