1
0

maybe this works
All checks were successful
Build & Publish / build (push) Successful in 3m17s

This commit is contained in:
Jannik Reimers 2025-04-03 21:27:42 +02:00
parent 89085c50bf
commit 5ad150e53d
Signed by: jansel
GPG Key ID: 39C62D7D5233CFD0
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Twitch : KordExKoinComponent {
if (event.customRewardId.isPresent && event.customRewardId.get() == "38157e62-de35-4a21-8200-447b55d7577e") {
logger.info { "Channel points redeemed: ${event.customRewardId.get()}" }
twitchClient!!.graphQL.updateRedemptionStatus(
OAuth2Credential("twitch", twitchToken),
OAuth2Credential("twitch", mainTwitchToken),
"120275141",
event.eventId,
CommunityPointsCustomRewardRedemptionStatus.FULFILLED

View File

@ -10,6 +10,8 @@ val twitchcid = env("TWITCH_CLIENT_ID")
val twitchcs = env("TWITCH_CLIENT_SECRET")
val twitchToken = env("TWITCH_OAUTH_TOKEN")
// This is the token for the main account, because of ChannelPoint stuff
val mainTwitchToken = env("TWITCH_OAUTH_TOKEN_MAIN")
suspend inline fun ExtensibleBotBuilder.twitch(active: Boolean) {
hooks {
beforeKoinSetup {