Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Feb 1, 2024
1 parent 2265df2 commit 6d5b35c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Since Mudslide keeps authentication state on disk you need to mount a state
directory outside the container, for example:

```shell
docker run -v $HOME/.local/share/mudslide:/usr/src/app/cache mudslide login
docker run -v $HOME/.local/share/mudslide:/usr/src/app/cache -it mudslide login
```

or:
Expand Down Expand Up @@ -117,8 +117,8 @@ npx mudslide@latest --proxy login

## Login

To login you need to authorize Mudslide from another device that has WhatsApp installed and scan the QR code printed
in the terminal:
To login you need to authorize Mudslide from another device that has WhatsApp
installed and scan the QR code printed in the terminal:

```shell
npx mudslide@latest login
Expand Down
2 changes: 2 additions & 0 deletions src/whatsapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export async function waitForKey(message: string) {
}

export async function login(waitForWA = false) {
signale.info('In the WhatsApp mobile app go to "Settings > Connected Devices > ');
signale.info('Connect Device" and scan the QR code below');
const socket = await initWASocket();
socket.ev.on('connection.update', async (update) => {
const {connection, lastDisconnect} = update
Expand Down

0 comments on commit 6d5b35c

Please sign in to comment.