Skip to content

v0.2.2

Compare
Choose a tag to compare
@JoDotNet JoDotNet released this 27 Oct 20:04
· 237 commits to main since this release

Release 0.2.2

Summary

Added

  • New Feature: Added support for fetching roles from BotNetworkConnection at startup and saving them to a local JSON file e.g (roles.json).
  • Utility Functions: Implemented save_json and load_json in utils.py for handling JSON operations.

Improved

  • BotSetup Class: Refactored to use the new utility functions for JSON operations.
  • Error Handling: Enhanced error handling in various methods to provide more informative error messages.
  • Code Documentation: Added docstrings and type annotations to improve code readability and maintainability.

Fixed

  • Bug Fix: Resolved an issue where the bot would fail to run if the token was not properly set in the environment variables.
  • Cog Loading: Fixed a bug where the bot would fail to load cogs if the cogs directory did not exist.

Changed

  • Refactoring: Refactored BotNetworkConnection methods to use self.application_id instead of passing application_id as a parameter.
  • Dependencies: Updated dependencies to their latest versions.

Removed

  • Deprecated Code: Removed deprecated methods and redundant code to streamline the codebase.

Installation Instructions

To install or upgrade to this version, use the following command:

pip install JoDBS-Tools==0.2.2

Full Changelog: v0.2.1...v0.2.2