diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 770093c..f4f3637 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index da0d1b6..3b4b940 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -4,7 +4,7 @@
-
+
\ No newline at end of file
diff --git a/.idea/modules/aglaea.main.iml b/.idea/modules/aglaea.main.iml
index e500db9..5646645 100644
--- a/.idea/modules/aglaea.main.iml
+++ b/.idea/modules/aglaea.main.iml
@@ -2,7 +2,7 @@
-
+
@@ -14,7 +14,7 @@
-
+
diff --git a/.idea/modules/aglaea.test.iml b/.idea/modules/aglaea.test.iml
index 829b187..cf76fff 100644
--- a/.idea/modules/aglaea.test.iml
+++ b/.idea/modules/aglaea.test.iml
@@ -2,7 +2,7 @@
-
+
aglaea:main
@@ -15,7 +15,7 @@
-
+
diff --git a/src/main/kotlin/dev/jansel/aglaea/utils/Twitch.kt b/src/main/kotlin/dev/jansel/aglaea/utils/Twitch.kt
index 1abbc09..918d698 100644
--- a/src/main/kotlin/dev/jansel/aglaea/utils/Twitch.kt
+++ b/src/main/kotlin/dev/jansel/aglaea/utils/Twitch.kt
@@ -51,7 +51,7 @@ class Twitch : KordExKoinComponent {
}
}
- if (event.customRewardId.get() == "bd678e34-5a33-4d79-9cb0-fbb83f88a26b") {
+ if (event.customRewardId.isPresent && event.customRewardId.get() == "bd678e34-5a33-4d79-9cb0-fbb83f88a26b") {
logger.info { "Channel points redeemed: ${event.customRewardId.get()}" }
logger.info { "Activating free Replays..." }
runBlocking {