bot-builder

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

MIT License

Downloads
2.1K
Stars
6

Bot releases are visible (Hide)

bot-builder - v1.2.1 Latest Release

Published by totigm 7 months ago

🐛 Fix no command bug

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.

Full Changelog: https://github.com/totigm/bot-builder/compare/v1.2.0...v1.2.1

bot-builder - v1.2.0

Published by totigm 9 months ago

✨ Add Map for Command Arguments

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:

  • ✨ Add map for command arguments
  • 🎨 Improve argument parsing logic
  • ♻️ Refactor argument handling in formatMessage

Full Changelog: https://github.com/totigm/bot-builder/compare/v1.1.1...v1.2.0

bot-builder - v1.1.1

Published by totigm about 2 years ago

🐛 Add tslib to prod dependencies instead of dev dependencies

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

bot-builder - v1.1.0

Published by totigm about 2 years ago

✨ Add authData to bot options

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

Changelog:

  • ✨ Add authData to bot options
  • 📝 Add authData docs
  • 📝 Update help command images

Full Changelog: https://github.com/totigm/bot-builder/compare/v1.0.5...v1.1.0

bot-builder - v1.0.5

Published by totigm about 2 years ago

Changelog:

  • 📝 Add description to specificHelpMessage docs

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

bot-builder - v1.0.4

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:

  • ✨ Add specific help suggestion to general help command
  • 💄 Add bold to example input on specific help
  • 📝 Update docs

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

bot-builder - v1.0.3

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:

  • 🐛 Fix specific help command

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

bot-builder - v1.0.2

Published by totigm about 2 years ago

🐛 Fix help suggestion

The bot sent the ✅ emoji instead of ❓ when suggesting the help command

Changelog:

  • 🐛 Fix help suggestion emoji
  • 💚 Update workflows
  • 🔨 Update scripts
  • 📝 Update docs
  • 🔧 Update configs

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

bot-builder - v1.0.1

Published by totigm about 2 years ago

🐛 Fix specific help without docs

The bot crashed when a user asked for specific help for a command that didn't have a Documentation object.

Changelog:

  • 🐛 Fix specific help command
  • 📝 Update docs

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

bot-builder - 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/bot-builder/commits/v1.0.0