Skip to content

Releases: parafoxia/chatto

v0.5.0

22 Jan 17:28
Compare
Choose a tag to compare

Breaking changes

  • Message.type is now an enum of type MessageType
  • The MessageSentEvent has been removed

Other changes

  • Fix some docs issues.

v0.4.2

09 Jan 20:27
Compare
Choose a tag to compare

Additions

  • Docs!

Breaking changes

Some variable names have changed. See v0.4.1...v0.4.2 for a full changelog.

v0.4.1

08 Jan 18:20
Compare
Choose a tag to compare

Fixed an issue where tokens would not refresh on start-up if the token had expired.

v0.4.0

07 Jan 00:21
Compare
Choose a tag to compare

Breaking changes

  • YouTubeBot.token is now YouTubeBot.api_key
  • YouTubeBot.oauth_tokens is now YouTubeBot.tokens

The YouTubeBot.authorise method still performs the same task as before, but now works out when to refresh tokens, etc.

Additions

  • Token refreshing! Chatto will now refresh your access token both on startup, and while running
  • A ReadyEvent is now dispatched when the bot is ready to start polling

Fixes

  • Failures in sending messages now raise a chatto.errors.HTTPError

v0.3.0

06 Jan 19:58
Compare
Choose a tag to compare

Major changes

The way the event queue is created has changed. Previously the queue was created at the same time as the event handler itself, but due to weird testing issues Python 3.8 and 3.9, it is now created in the run method. You can still access the queue using bot.events.queue, but it will now return None if the queue doesn't exist.

Minor changes

  • The NoEventQueue exception has been added
  • The secrets_file kwarg of the YouTubeBot constructor is now optional

Additions

  • Testing for all easily testable aspect of YouTubeBot

v0.2.1

06 Jan 18:41
Compare
Choose a tag to compare

This release changes the way Stream instances are created.

There is now a single classmethod, from_data, which accepts a video resource, that can be retrieved from the new staticmethods.

They are similar to the old classmethods, only really with name changes. Both return the video resource data from_data expects:

  • Stream.from_id -> Stream.fetch_stream_data
  • Stream.from_channel_id -> Stream.fetch_active_stream_data

This is normally done internally so it doesn't matter too much, but it allowed for better testing, and is more consistent with other classes.

v0.2.0.post1

06 Jan 04:26
Compare
Choose a tag to compare

See https://github.com/parafoxia/chatto/releases/tag/v0.2.0 for v0.2.0 release notes.

This post release edits the README, and fixes an issue in the setup.py file.

v0.2.0

06 Jan 04:13
Compare
Choose a tag to compare

Additions

  • You can now use the bot.listen decorator to subscribe to events, though the old method is still present
  • New event types have been added:
    • ChatPolledEvent
    • MessageSentEvent
    • AuthorisedEvent

Fixes

  • Fix a few typing issues

v0.1.2

05 Jan 00:14
Compare
Choose a tag to compare

Fixes

  • Fixed a substantial bug which prevented the bot running properly on Python versions 3.10 and under
  • Removed support for Python 3.7 as asyncio works too differently in that version
  • Various other patches

v0.1.1

05 Jan 00:14
Compare
Choose a tag to compare

Additions

  • You can now provide a path to your secrets file through the YouTubeBot constructor

Changes

  • Errors raised while getting stream info are now of type chatto.HTTPError rather than aiohttp.client_exceptions.ClientResponseError