feat(twitch): add auto-claim-channel-points patch (#398)

This commit is contained in:
redphx 2023-05-13 06:20:00 +07:00 committed by GitHub
parent ab87cce7e5
commit d7f050ba2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
package app.revanced.twitch.patches;
import app.revanced.twitch.settings.SettingsEnum;
public class AutoClaimChannelPointsPatch {
public static boolean shouldAutoClaim() {
return SettingsEnum.AUTO_CLAIM_CHANNEL_POINTS.getBoolean();
}
}

View File

@ -21,6 +21,7 @@ public enum SettingsEnum {
/* Chat */
SHOW_DELETED_MESSAGES("revanced_show_deleted_messages", STRING, "cross-out"),
AUTO_CLAIM_CHANNEL_POINTS("revanced_auto_claim_channel_points", BOOLEAN, TRUE),
/* Misc */
DEBUG_MODE("revanced_debug_mode", BOOLEAN, FALSE, true);