Skip to content

v0.18.0

Latest

Choose a tag to compare

@Pikachannel Pikachannel released this 17 Nov 23:12
6192dde

This release focuses on improving bot stability, reliability, and configuration management. It introduces graceful shutdown handling, a new logging system, improved configuration validation, and several other improvements.

Added

  • Added graceful shutdown handling for workers and Bluesky Jetstream connections, including completing pending JSON writes.
  • Added bot account configuration validation, including checks for missing credentials, duplicate accounts and invalid account numbering.
  • Added configurable Word of the Day bot selection through the .env file, with the ability to disable the feature.
  • Added file logging for informational messages, warnings, and errors to .log files in the /logs directory. A unique log file is generated each time a bot starts.
  • Added automatic cleanup of older log files.
  • Added dedicated exception types for authentication, network, API, rate-limit and configuration errors.
  • Added a stop signal to the JSON worker to allow it to shut down cleanly.
  • Added a GitHub Actions workflow to send commit notifications to Discord via a webhook.

Changed

  • Refactored Jetstream reconnection handling into a dedicated helper function.
  • Changed reconnect timing so that the reconnect timer only resets after a connection has remained stable for 30 seconds.
  • Improved DM worker exception handling to prevent individual errors from stopping all command processing.
  • Updated the security policy to clarify the project's release schedule and security update policy.

Removed

  • Removed the five minute message age check from the DM worker, as the existing message processing logic prevents previously handled commands from being processed again.