Releases: JoDBS/JoDBS_Tools
Releases · JoDBS/JoDBS_Tools
v0.2.4
Release 0.2.4
Summary
Added
- Added docstring to
Permission_Checks.has_role
decorator for clarity. - Added error handling to
BotNetworkConnection._handle_response
method. - Added error handling to YouTube video fetching method.
Improved
- Improved role check in
Permission_Checks
decorator.
Fixed
- No specific fixes mentioned.
Changed
- Refactored
README.md
to update Discord Bot usage instructions and add required environment variables. - Renamed
Database
class toMongoClientConnection
for clarity and specificity.
Removed
- No specific removals mentioned.
Installation Instructions
To install or upgrade to this version, use the following command:
pip install JoDBS-Tools==0.2.4
Full Changelog: v0.2.3...v0.2.4
v0.2.3
Release 0.2.3
Summary
Added
- Added upcoming feature details to README for asynchronous functions.
Improved
- Enhanced code readability by refactoring import statements in
__init__.py
. Fixed import names.
Fixed
- Corrected function name in
utils.py
fromGetUnixTime_UTC
toGet_UnixTime_UTC
for naming consistency.
Changed
- Refactored
BotSetup.py
to useNodeConnection
instead ofBNC
for streamlined configuration.
Installation Instructions
To install or upgrade to this version, use the following command:
pip install JoDBS-Tools==0.2.3
Full Changelog: v0.2.2...v0.2.3
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
v0.2.1
Release 0.2.1
Summary
This release introduces new features, improvements, and bug fixes to enhance the functionality and performance of the JoDBS_Tools library.
New Features
- YouTube Integration: Added a
YouTube
class to fetch the latest video from a specified YouTube channel using the YouTube Data API. - Enhanced Bot Network Integration: Additional methods for connecting to your Bot Node Network.
Improvements
- Database Connection: Improved error handling and connection stability for MongoDB.
- Role-Based Decorators: Enhanced performance and added more customization options for role-based access control in Discord bots.
Bug Fixes
- Fixed an issue where environment variables were not being loaded correctly in some cases.
- Resolved a bug that caused timestamp functions to return incorrect values in certain time zones.
Breaking Changes
- None.
Installation Instructions
To install or upgrade to this version, use the following command:
pip install JoDBS-Tools==0.2.1
Full Changelog: v0.2.0...v0.2.1