Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sarfraznawaz2005 committed Dec 15, 2017
1 parent 29cac8b commit 0bece67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ Tested on Windows with Node v8.9.1 and puppeteer v0.13.0
- Clone this repository. `git clone https://github.com/sarfraznawaz2005/whatspup.git`
- Type `npm install`
- Type `node chat.js USERNAME` (case-sensitive)
- Chrome will open up, now just scan Whatsapp QR Code once
- Chrome will open up, now just scan Whatsapp QR Code once via whatsapp app in your mobile
- Wait for connection and start typing your messages :smile:


**NOTE:** Once you have connected by scanning QR code, your session will be saved so you won't have to scan it again and again unless you revoke from whatsapp app or by deleting **tmp** folder.

## Commands ##

**Changing User**

You can switch chat with another user anytime by typing on console:
`--chat USERNAME` (case-sensitive)

NOTE: `USERNAME` is supposed to be a person with whom you have already initiated a conversation in whatsapp. In other words, we use a selector to click that user's name from conversations list.
**NOTE:** `USERNAME` is supposed to be a person with whom you have already initiated a conversation in whatsapp. In other words, we use a selector to click that user's name from conversations list.

If `USERNAME` contains space, you should specify it in double quotes instead like `--chat "Foo Bar"`

Expand Down

0 comments on commit 0bece67

Please sign in to comment.