Warning: session_start(): open(/var/lib/php/sessions/sess_lgbme50e2am7m3eep6cnahtcf4, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
lib 1400128 // twitch4j
lib 1400129 // credentialmanager
import com.github.twitch4j.*;
import com.github.philippheuer.credentialmanager.domain.OAuth2Credential;
sS clientID = "cij4uwn2reu3rmdvdekn0nqhxf08e9";
p-exp {
S clientSecret = trimLoadTextFileMandatory(javaxSecretDir("twitch-client-secret.txt"));
S chatToken = trimLoadTextFileMandatory(javaxSecretDir("twitch-oauth-token.txt"));
TwitchClientBuilder clientBuilder = TwitchClientBuilder.builder();
OAuth2Credential credential = new("twitch", chatToken);
TwitchClient twitchClient = clientBuilder
.withClientId(clientID)
.withClientSecret(clientSecret)
.withEnableHelix(true)
.withChatAccount(credential)
.withEnableChat(true)
//.withEnableGraphQL(true)
//.withEnableKraken(true)
.build();
}