v0.2.2
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
andload_json
inutils.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 useself.application_id
instead of passingapplication_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