whatsapp-bot

This is a library to create WhatsApp bots. It handles all the commands stuff behind the scenes, so you can focus on your bot's logic.

MIT License

Downloads
1.7K
Stars
4
Committers
1

Bot releases are hidden (Show)

whatsapp-bot - v1.1.1 Latest Release

Published by totigm 7 months ago

⬆️ Upgrade bot-builder version

This release fixes a bug that made the bot crash when a message with the command symbol by itself was received.

Example:

Receiving a message ! without any content would make the bot crash, !a wouldn't.

Changelog:

  • πŸ› Fix no command bug

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.1.0...v1.1.1

whatsapp-bot - v1.1.0

Published by totigm 9 months ago

✨ Add Map for Command Arguments

@totigm/bot-builder v1.2.0 introduced a feature to map command arguments to their respective values. This enhancement facilitates the efficient handling and retrieval of command argument data in a more structured manner.

Example:

From the message !command text="Hey there!" testing stage=development, an argsMap object is created. This object makes it easy to access the individual arguments and their values (or true if they are flags). Here's how the argsMap would look for this command:

{
    text: "Hey there!",
    testing: true,
    stage: "development"
}

Changelog:

  • ⬆️ Update @totigm/bot-builder to v1.2.0
    • ✨ Add map for command arguments
    • 🎨 Improve argument parsing logic
    • ♻️ Refactor argument handling in formatMessage

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.14...v1.1.0 (see @totigm/bot-builder changelog)

whatsapp-bot - v1.0.14

Published by totigm 9 months ago

🏷️ Fix exported types

whatsapp-web.js and @totigm/bot-builder types weren't accessible by this library's consumers because of a problem with module.exports = WhatsappBot.

Changelog

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.13...v1.0.14

whatsapp-bot - v1.0.13

Published by totigm 9 months ago

🏷️ Update types exported

Export whatsapp-web.js and @totigm/bot-builder so they can be used by this library's consumers

Changelog

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.12...v1.0.13

whatsapp-bot - v1.0.12

Published by totigm 10 months ago

πŸ“Œ Update whatsapp-web.js version

Update whatsapp-web.js to v1.23.0.

Changelog

  • πŸ“Œ Update whatsapp-web.js version
  • πŸ‘½οΈ Skip lib check due to dependencies issues
    • whatsapp-web-js has some JSDoc issues that are making our build step crash

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.11...v1.0.12

whatsapp-bot - v1.0.12

Published by totigm 12 months ago

πŸ“Œ Update whatsapp-web.js version

Update whatsapp-web.js to v1.23.0.

Changelog

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.11...v1.0.12

whatsapp-bot - v1.0.11

Published by totigm over 1 year ago

πŸ“Œ Update whatsapp-web.js version

Update whatsapp-web.js to v1.19.5 to fix LegacyPhoneFeatures error

Changelog

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.10...v1.0.11

whatsapp-bot - v1.0.10

Published by totigm almost 2 years ago

πŸ“Œ Update whatsapp-web.js version

Update whatsapp-web.js to v1.18.3 to fix GroupMetadata module

Changelog

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.9...v1.0.10

whatsapp-bot - v1.0.9

Published by totigm almost 2 years ago

πŸ“Œ Update whatsapp-web.js version

Update whatsapp-web.js to v1.18.2 for proper compatibility with WhatsApp Web v2.2241.6

Changelog

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.8...v1.0.9

whatsapp-bot - v1.0.8

Published by totigm almost 2 years ago

πŸ“Œ Update whatsapp-web.js version

Update whatsapp-web.js to v1.18.0 for proper compatibility with WhatsApp Web v2.2240.7.

Changelog

  • πŸ“Œ Update whatsapp-web.js version
  • πŸ“ Add reference to WhatsApp bot template

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.7...v1.0.8

whatsapp-bot - v1.0.7

Published by totigm about 2 years ago

πŸ§‘β€πŸ’» Add is docker env variable support

When deploying Dockerized apps to some cloud providers, such as Heroku, the .dockerenv file don't exist, so now the IS_DOCKER_CONTAINER environment variable is also checked to use Puppeteer settings that can be run on Docker containers.

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.6...v1.0.7

whatsapp-bot - v1.0.6

Published by totigm about 2 years ago

πŸ“ Add bot examples section to README

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.5...v1.0.6

whatsapp-bot - v1.0.5

Published by totigm about 2 years ago

✨ Add Docker support

The library now automatically checks if the app is being run on a Docker container and set its configurations according to that.

Changelog:

  • ✨ Add Docker support
  • βž• Add tslib to prod dependencies instead of dev dependencies
  • πŸ“ Update docs

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.4...v1.0.5

whatsapp-bot - v1.0.4

Published by totigm about 2 years ago

πŸ·οΈπŸ‘½ Update types for @totigm/bot-builder options

Add option with data that will be passed to the auth method. Could be tokens, or whatever you need.

Changelog:

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.3...v1.0.4

whatsapp-bot - v1.0.3

Published by totigm about 2 years ago

✨ Add specific help suggestion to general help command

The general help command didn't suggest to use the specific help one, now it does.

specific help suggestion on general help command

Changelog:

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.2...v1.0.3

whatsapp-bot - v1.0.2

Published by totigm about 2 years ago

πŸ› Fix specific help without example output

The bot crashed when a user asked for specific help for a command that didn't have an example.output in the Documentation object.

Changelog:

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.1...v1.0.2

whatsapp-bot - v1.0.1

Published by totigm about 2 years ago

πŸ› Fix help suggestion

The bot sent the βœ… emoji instead of ❓ when suggesting the help command

Changelog:

  • πŸ“ŒUpdate @totigm/bot-builder to v1.0.2
  • πŸ“ Update example usage
    • Update example
    • Add image showing bot responses
  • πŸ’š Update workflows
  • πŸ”¨ Update scripts
  • πŸ“ Update docs
  • πŸ”§ Update configs

Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.0...v1.0.1

whatsapp-bot - v1.0.0

Published by totigm about 2 years ago

This release is the first stable version.

Changelog:

  • πŸ”§ Add configurations
  • 🚨 Add ESLint
  • πŸ’„ Add Prettier
  • πŸŽ‰ Add project
  • 🏷️ Add types
  • πŸ“ Add docs
  • πŸ‘· Add CICD

Full Changelog: https://github.com/totigm/whatsapp-bot/commits/v1.0.0