Skip to content

Commit

Permalink
fix: 🐛 Footer and Buttons are not working (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek authored Dec 13, 2023
1 parent bbc15d6 commit 8c2496e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 23 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,22 +155,6 @@ Use `\n` to send a message with a newline, for example:
npx mudslide@latest send me 'hello\nworld'
```

### Footer text

Use the `--footer` option to include a footer text with your message:

```shell
npx mudslide@latest send me 'hello\nworld' --footer 'Bye!'
```

### Buttons

Use the `-b`/`button` option to include a button with your message. This option can be used multiple times:

```shell
npx mudslide@latest send [email protected] 'Everyone ready?' -b 'yes' -b 'no'
```

## Sending an image file

Image files (PNG, JPG, GIF) can be sent to individuals or groups:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"@adiwajshing/keyed-db": "^0.2.4",
"@hapi/boom": "^10.0.0",
"@whiskeysockets/baileys": "^6.4.0",
"@whiskeysockets/baileys": "^6.5.0",
"commander": "^9.4.1",
"global-agent": "^3.0.0",
"mime": "^3.0.0",
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ function configureCommands() {
program
.command('send <recipient> <message>')
.description('Send message')
.option('-b, --button <text>', 'Button text (repeatable option)', (val, prev: Array<string>) => prev.concat([val]), [])
.option('--footer <text>', 'Footer text')
.action((recipient, message, options) => sendMessage(recipient, message, options));
program
.command('send-image <recipient> <file>')
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1281,10 +1281,10 @@
"@wasm-audio-decoders/common" "9.0.1"
codec-parser "2.4.3"

"@whiskeysockets/baileys@^6.4.0":
version "6.4.0"
resolved "https://registry.yarnpkg.com/@whiskeysockets/baileys/-/baileys-6.4.0.tgz#7effbec2d0d7529ce4ee338024fb65fb28b87089"
integrity sha512-SdCoVpILWX7z2WEe40BwNjMqpI6Guf0gbG80NNfsJBcRcDQIS9pkmazIhTvNKytWZm7BFZR+QNKcBUxdPqdLsQ==
"@whiskeysockets/baileys@^6.5.0":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@whiskeysockets/baileys/-/baileys-6.5.0.tgz#1da0e7f68c8e2261d550b0197d1312214a4f72ba"
integrity sha512-ary0RNivsrl56wnn0ta37LwVGpCDabthERCV5lHHsbhJJFfp04g6+reiQAKvxo61oYxwxKjqq33kvID+AOr++A==
dependencies:
"@adiwajshing/keyed-db" "^0.2.4"
"@hapi/boom" "^9.1.3"
Expand Down

0 comments on commit 8c2496e

Please sign in to comment.