Hikari-kasai

Latest version: v0.10a0

Safety actively analyzes 682416 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.10a

Additions

- Added `TwitchClient.fetch_stream()` and `Channel.fetch_stream()` methods
- A `NotFound` error for when fetching resources fails

Changes

- `Channel.delay` can now be `None`. This will be the case when fetching a channel from stream data

Fixes

- Employed `irctokens` for proper IRC message parsing

0.9a

Additions

- `TwitchClient.get_me()`, which returns the bot's user instance

Bug fixes

- Restart IRC socket when Twitch sends empty payload rather than having a lock-up

0.8a

Additions

- `User.` and `Viewer.login`, which do the same as `.username`, just with Twitch's naming convention
- The `reply_to` kwarg in `TwitchClient.create_message`, and the `reply` kwarg in `Message.respond`, which allow the bot to reply to users

Breaking changes

- `User.` and `Viewer.broadcaster_type` are now of type `BroadcasterType` (which is an enum) rather than of type string

0.7a2

Fixed a setup bug.

0.7a1

Changes

- Improved logging to be more detailed and more consistent with Hikari's

Fixes

- Fixed a bug where closing the bot would always throw a `CancelledError` exception

0.7a

Breaking changes

This release rewrites most of the internals. While there aren't *too* many breaking changes on the front end, some do exist. This will outline all the major changes you need to worry about (hopefully I haven't missed anything!):

- The bot will now automatically connect to Twitch, so `bot.start_irc` and `bot.close_irc` no longer exist. You do still need to join channels, which you can do using the `bot.twitch.join` method.
- The `GatewayBot` and `TwitchClient` classes now require `client_id` and `client_secret` arguments to be passed to it.
- `TwitchClient.bot` is now `TwitchClient.app`.
- The `PrivMessage` has been renamed to simply `Message`.
- The `PrivMessageCreateEvent` has been renamed to simply `MessageCreateEvent`.
- The `User` class has been completely overhauled. Channel specific information is now in the `Viewer` class.
- No other events have `message` attributes now — refer to the documentation for specific changes.
- The errors have been completely overhauled — refer to the documentation for more info.

Additions

- `TwitchClient.fetch_user` and `.fetch_channel`
- `Channel.send` and `Message.respond`

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.