discord-bot

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

MIT License

Downloads
424
Stars
2
Committers
1

Bot releases are hidden (Show)

discord-bot - v1.1.0 Latest Release

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/discord-bot/compare/v1.0.2...v1.1.0 (see @totigm/bot-builder changelog)

discord-bot - v1.0.2

Published by totigm about 2 years ago

🐛 Add tslib to prod dependencies instead of dev dependencies

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

discord-bot - v1.0.1

Published by totigm about 2 years ago

📝 Update package.json description

The package.json description was This is a TypeScript template to create NPM packages from the @totigm/ts-package-template. Now it is This is a library to create discord bots. It handles all the commands stuff behind the scenes, so you can focus on your bot's logic.

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

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