This commit is contained in:
parent
89085c50bf
commit
5ad150e53d
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user