Skip to content

Commit

Permalink
Prepare build
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcardeenas committed Jun 10, 2019
1 parent e75afbf commit f0d3017
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean": "rm -rf session && rm -rf dist",
"clean:full": "rm -rf node_modules && npm run clean",
"precise-commits": "precise-commits",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"No tests yet\""
},
"husky": {
"hooks": {
Expand Down
14 changes: 8 additions & 6 deletions src/api/model/contact.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { Id } from './id';




export interface Contact {
formattedName: string;

id: Id;

isBusiness: boolean;
isEnterprise: boolean;
isHighLevelVerified: any;
Expand All @@ -21,7 +16,14 @@ export interface Contact {
msgs: any;
name: string;
plaintextDisabled: boolean;
profilePicThumbObj: any;
profilePicThumbObj: {
eurl: string;
id: Id;
img: string;
imgFull: string;
raw: any;
tag: string;
};
pushname: string;
sectionHeader: any;
shortName: string;
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/browser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import * as puppeteer from 'puppeteer';
import puppeteer from 'puppeteer';
import { puppeteerConfig } from '../config/puppeteer.config';

export async function initWhatsapp() {
Expand Down
16 changes: 0 additions & 16 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
import { create } from './controllers/initializer';

export { Chat, Contact, Message } from './api/model';
export { Whatsapp } from './api/whatsapp';
export { create } from './controllers/initializer';

async function start() {
const client = await create();

// Group
const groups = await client.getAllGroups();
const group = groups.find(g => g.name === 'NEGATIVE VIBES/SHIT TALK');
const metadata = await client.getGroupMembers(group.id._serialized);
console.log(metadata);

// console.log(berni.name);
}

start();

0 comments on commit f0d3017

Please sign in to comment.