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
Bot releases are hidden (Show)
This release fixes a bug that made the bot crash when a message with the command symbol by itself was received.
Receiving a message !
without any content would make the bot crash, !a
wouldn't.
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.1.0...v1.1.1
Published by totigm 9 months ago
@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.
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"
}
@totigm/bot-builder
to v1.2.0
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.14...v1.1.0 (see @totigm/bot-builder changelog)
Published by totigm 9 months ago
whatsapp-web.js and @totigm/bot-builder types weren't accessible by this library's consumers because of a problem with module.exports = WhatsappBot
.
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.13...v1.0.14
Published by totigm 9 months ago
Export whatsapp-web.js and @totigm/bot-builder so they can be used by this library's consumers
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.12...v1.0.13
Published by totigm 10 months ago
Update whatsapp-web.js to v1.23.0.
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.11...v1.0.12
Published by totigm 12 months ago
Update whatsapp-web.js to v1.23.0.
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.11...v1.0.12
Published by totigm over 1 year ago
Update whatsapp-web.js to v1.19.5 to fix LegacyPhoneFeatures error
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.10...v1.0.11
Published by totigm almost 2 years ago
Update whatsapp-web.js to v1.18.3 to fix GroupMetadata module
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.9...v1.0.10
Published by totigm almost 2 years ago
Update whatsapp-web.js to v1.18.2 for proper compatibility with WhatsApp Web v2.2241.6
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.8...v1.0.9
Published by totigm almost 2 years ago
Update whatsapp-web.js to v1.18.0 for proper compatibility with WhatsApp Web v2.2240.7.
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.7...v1.0.8
Published by totigm about 2 years ago
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
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
Published by totigm about 2 years ago
The library now automatically checks if the app is being run on a Docker container and set its configurations according to that.
tslib
to prod dependencies instead of dev dependenciesFull Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.4...v1.0.5
Published by totigm about 2 years ago
@totigm/bot-builder
optionsAdd option with data that will be passed to the auth
method. Could be tokens, or whatever you need.
@totigm/bot-builder
to v1.1.0
@totigm/bot-builder
optionsFull Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.3...v1.0.4
Published by totigm about 2 years ago
The general help command didn't suggest to use the specific help one, now it does.
@totigm/bot-builder
to v1.0.5
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.2...v1.0.3
Published by totigm about 2 years ago
The bot crashed when a user asked for specific help for a command that didn't have an example.output
in the Documentation
object.
@totigm/bot-builder
to v1.0.3
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.1...v1.0.2
Published by totigm about 2 years ago
help
suggestionThe bot sent the β
emoji instead of β when suggesting the help
command
@totigm/bot-builder
to v1.0.2
Full Changelog: https://github.com/totigm/whatsapp-bot/compare/v1.0.0...v1.0.1
Published by totigm about 2 years ago
This release is the first stable version.
Full Changelog: https://github.com/totigm/whatsapp-bot/commits/v1.0.0