Skip to content

Conversation

@Darosss
Copy link
Owner

@Darosss Darosss commented Dec 11, 2023

  • song request via channel points
  • add checking if song is diabled in database before add requested song to que
  • add achievement responsible for new songs in database

- add ADDED_NEW_SONG_TO_DB
- add default above achievement to getDefaultAchievementsData
this commit adds information if song is added or already was in database
- add musicYTHandler as class property
- add musicYTHandler to constructor
in subscribeToChannelRedemptionAddEvents method add usage of musicYTHandler.handleIfSongRequestRewardIsRedeemed
- add const SONG_REQUEST_REWARD_NAME - for name of SR channel point
- add twitchApi, authorizedUser and achievementsHandler in constructor and properties
- add isSongRequestChannelRewardCreated method
- add createIfNotExistSongRequestReward method
- add handleIfSongRequestRewardIsRedeemed method
 - add handleSongRequestedSongLogic method and use it in addRequestedSongToPlayer
- in searchForRequestedSong wrap youtubeAPIHandler methods in try cathc block - when no song was found youtube sent some strange errors
- add preventing to request song that is disbaled in database
- add checking to ADD_NEW_SONG_TO_DB achievement created there: 5a68711
…d EventSubHandler

connected changes for:
* EventSubHandler: 8a362f5
* AchievementsHandler: 2d0f4c5
@Darosss Darosss merged commit f75348a into main Dec 11, 2023
@Darosss Darosss deleted the feature/improve-song-request-server branch December 11, 2023 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants