KoalaBotUK / KoalaBot

🐨 All in one Discord bot for student societies & communities
https://KoalaBot.uk
MIT License
11 stars 8 forks source link

chore(deps): bump twitchapi from 2.5.3 to 3.9.0 #370

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps twitchapi from 2.5.3 to 3.9.0.

Release notes

Sourced from twitchapi's releases.

v3.9.0

Twitch

  • Added the following new Endpoints:

    • "Get Channel Followers" Twitch.get_channel_followers()
    • "Get Followed Channels"Twitch.get_followed_channels()
  • Fixed TypeError: __api_get_request() got an unexpected keyword argument 'body' (Thanks @​JC-Chung )

EventSub

  • Added new Topic EventSub.listen_channel_follow_v2()

Chat

  • Bot is now correctly reconnecting and rejoining channels after losing connection
  • added Chat.is_subscriber() (Thanks @​stolenvw )
  • added new Event ChatEvent.NOTICE - Triggered when server sends a notice message (Thanks @​stolenvw )

v3.8.0

Twitch

  • Added the new Endpoint "Send a Shoutout" Twitch.send_a_shoutout()
  • Twitch.get_users_follows() is now marked as deprecated
  • Added missing parameter type to Twitch.get_streams()

Helper

  • Added new Async Generator helper limit(), with this you can limit the amount of results returned from the given AsyncGenerator to a maximum number

EventSub

  • Added the following new Topics:
    • "Channel Shoutout Create" EventSub.listen_channel_shoutout_create()
    • "Channel Shoutout Receive" EventSub.listen_channel_shoutout_receive()

PubSub

  • Added new Topic "Low trust Users" PubSub.listen_low_trust_users()

Chat

... (truncated)

Changelog

Sourced from twitchapi's changelog.

:orphan:

Changelog


Version 3.9.0


Twitch

  • Added the following new Endpoints:

    • "Get Channel Followers" :const:~twitchAPI.twitch.Twitch.get_channel_followers()
    • "Get Followed Channels" :const:~twitchAPI.twitch.Twitch.get_followed_channels()
  • Fixed TypeError: __api_get_request() got an unexpected keyword argument 'body' (Thanks https://github.com/JC-Chung )

EventSub

  • Added new Topic :const:~twitchAPI.eventsub.EventSub.listen_channel_follow_v2()

Chat

  • Bot is now correctly reconnecting and rejoining channels after losing connection
  • added :const:~twitchAPI.chat.Chat.is_subscriber() (Thanks https://github.com/stolenvw )
  • added new Event :const:~twitchAPI.types.ChatEvent.NOTICE - Triggered when server sends a notice message (Thanks https://github.com/stolenvw )

Version 3.8.0


Twitch

  • Added the new Endpoint "Send a Shoutout" :const:~twitchAPI.twitch.Twitch.send_a_shoutout()
  • :const:~twitchAPI.twitch.Twitch.get_users_follows() is now marked as deprecated
  • Added missing parameter :code:type to :const:~twitchAPI.twitch.Twitch.get_streams()

Helper

  • Added new Async Generator helper :const:~twitchAPI.helper.limit(), with this you can limit the amount of results returned from the given AsyncGenerator to a maximum number

EventSub

... (truncated)

Commits
  • 0c2d5c1 Bump Version to 3.9.0
  • b671fc6 changed EventSub.listen_channel_follow back to v1 and added `EventSub.liste...
  • 5a03b9c auto rejoin last known channel list and trigger READY only on startup.
  • e15c837 switch EventSub.listen_channel_follow to v2, closes #204
  • 8a97316 Added twitch.get_followed_channels(), closes #203
  • be3f198 added Twitch.get_channel_followers, closes #202
  • baae023 minor refactor
  • 6c84d1e validate and refresh token if needed when Chat bot is reconnecting. closes #220
  • fbc99d8 Merge pull request #217 from JC-Chung/master
  • 82c2d2d Update object.py
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
JayDwee commented 1 year ago

Breaking change to start using objects as response. Needs more work

codecov[bot] commented 1 year ago

Codecov Report

Merging #370 (6d2eabe) into master (10e14c4) will increase coverage by 0.02%. The diff coverage is 81.81%.

@@            Coverage Diff             @@
##           master     #370      +/-   ##
==========================================
+ Coverage   86.75%   86.77%   +0.02%     
==========================================
  Files         111      111              
  Lines        8130     8150      +20     
==========================================
+ Hits         7053     7072      +19     
- Misses       1077     1078       +1     
Flag Coverage Δ
unittests 86.77% <81.81%> (+0.02%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
koala/cogs/twitch_alert/core.py 12.28% <15.38%> (+1.56%) :arrow_up:
koala/cogs/twitch_alert/cog.py 61.42% <50.00%> (+0.19%) :arrow_up:
koala/cogs/twitch_alert/twitch_handler.py 75.51% <83.33%> (+0.51%) :arrow_up:
koala/cogs/twitch_alert/db.py 85.18% <100.00%> (+0.37%) :arrow_up:
koala/cogs/twitch_alert/utils.py 100.00% <100.00%> (ø)
tests/cogs/twitch_alert/test_db.py 100.00% <100.00%> (ø)
tests/cogs/twitch_alert/test_twitch_handler.py 96.42% <100.00%> (+0.42%) :arrow_up:
tests/cogs/twitch_alert/test_utils.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.