Skip to content

v0.4.0

Latest

Choose a tag to compare

@outarde outarde released this 12 Aug 13:08
· 13 commits to main since this release

v0.4.0

This update adds support for 11 new languages ​​and improves natural language recognition in bot commands! Our bot was also featured in last week's This Week In Matrix digest. Read it in the Bots Department section.

Warning

This version requires changing the environment variable LANG_APP to BOT_LANG. There is no backward compatibility with the old variable.

New Languages

Added translations for bot messages in chats, as well as the remind command and the expressions today, tomorrow, morning, afternoon, and evening for the following languages:

  • en English 🇬🇧
  • de German 🇩🇪
  • fr French 🇫🇷
  • it Italian 🇮🇹
  • es Spanish 🇪🇸
  • sv Swedish, aka IKEAish 🇸🇪
  • pl Polish 🇵🇱
  • cs Czech 🇨🇿
  • fi Finnish 🇫🇮
  • ja Japanese 🇯🇵
  • zh Chinese Simplified 🇨🇳
  • ru Russian 🇷🇺
  • uk Ukrainian 🇺🇦

Important

Currently, keywords and month names may not take declension and case into account. A temporary solution is to use three-letter month abbreviations. Translation is ongoing, and any contributions are welcome!

New Parameters

New optional parameters have been added to the BOT_ prefix:

  • BOT_LANG and BOT_COMMAND - correspond to the old LANG_APP and LANG_BOT_COMMAND.
  • BOT_ON_COMMAND and BOT_ON_MENTION - control whether the bot is activated by command or only by mention in general chats. Currently inactive, they will be available in the next release.
  • BOT_MORNING_TIME, BOT_AFTERNOON_TIME, BOT_EVENING_TIME - standard times for morning, afternoon, and evening in the %H:%M format like: BOT_MORNING_TIME=08:00. To create reminders, you can now write: !remind today morning fly on an airplane.

Roadmap for Next Releases

The next minor releases will fix bugs and refactor the code. Then, we plan to add a setting for activating the bot without a command in private chats and by mention in group chats. We'll also be changing the functionality for creating reminders without specifying a time: they will be created an hour later, rather than at 09:00. Finally, we'll add alternative commands - a list of all reminders and settings - to pave the way for the long-awaited custom time zone feature.

What's Changed

⚠️ Breaking Changes

  • Environment Variable: Change LANG_APP variable to BOT_LANG and LANG_BOT_COMMAND to BOT_COMMAND if you used them.

🚀 Features and Enhancements

  • 7ab28a2 Welcome message from the bot is formatted to HTML to highlight commands examples
  • 6889265 Time validation for new reminder
  • 4a24e33 Three-letter abbreviation for months

🐛 Bug Fixes

  • 3b0602c Fix regular expression bug in parsing months and year undivided when reminder time is not specified
  • 3e29b95 One more fix for time validation and new format for default morning, afternoon, evening times
  • 3884d70 Month in success message has %M format

🌐 Translations

🏗️ Building and Refactoring

Full Changelog: v0.3.1...v0.4.0