Version 2.5 (2024-03-17)
Changed
- Twitch Integration
- Updated Twitch PubSub and EventSubs integration.
- Modified client initialization from
twitchio.Client(token=TWITCH_API_AUTH)totwitchio.Client(token=CHANNEL_AUTH). - Changed
pubsub_pool.subscribe_channel(...)topubsub_pool.subscribe_to_channel(...)for better clarity and fixed method naming. - Added error handling and event logging to the PubSub event handler.
Added
- Introduced a constructor under
class Bot(commands.Bot):to initialize the bot with specific parameters such as token, prefix, initial channels, and nickname. - Added a global function update in refresh token commands, changing from
global OAUTH_TOKEN, REFRESH_TOKENtoglobal CHANNEL_AUTH, REFRESH_TOKENfor correct token handling. - Included an error catch for the TwitchAPI in the
cheerleader_commandto handle401 Unauthorizedresponses gracefully. - New command
mybitsto fetch and display the total bits given by a user.- Improved the bits display format in the
mybitscommand for better readability.
- Improved the bits display format in the
- Introduced a
roadmapcommand to share the bot development roadmap. - Expanded the built-in commands list to include new commands
roadmapandmybits.
Removed
- Eliminated an unnecessary
pubsub_clientinstantiation which was redundant after updates.
Fixes
- Corrected various token references and method calls to ensure compatibility and functionality with the Twitch API.
- Fixed incorrect variable usages and streamlined the authentication process for the bot to work seamlessly.
Thank you for your feedback and support!
As always, your feedback is appreciated. Please report any issues, bugs, or suggestions in the #ticket-info channel on our Discord server. You can also submit feedback and bug reports directly on our website: https://botofthespecter.com/feedback.php