Added voice selection, username filter and word filter from hermes

This commit is contained in:
Tom
2024-01-05 10:07:41 +00:00
parent 8845757c29
commit 9cd6725570
10 changed files with 339 additions and 180 deletions

View File

@ -11,18 +11,20 @@ public class TwitchApiClient {
private TwitchBotToken token;
private TwitchClient client;
private TwitchPubSub publisher;
private WebHelper web;
private bool initialized;
public TwitchApiClient(TwitchBotToken token) {
client = new TwitchClient(new WebSocketClient());
publisher = new TwitchPubSub();
web = new WebHelper();
initialized = false;
this.token = token;
}
public async Task<bool> Authorize() {
var authorize = await WebHelper.Get("https://hermes.goblincaves.com/api/account/reauthorize");
var authorize = await web.Get("https://hermes.goblincaves.com/api/account/reauthorize");
var status = (int) authorize.StatusCode;
return status == 200 || status == 201;
}