We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d325c3e + effe8aa commit 8b89ad1Copy full SHA for 8b89ad1
src/Nullinside.Api.TwitchBot/Services/MainService.cs
@@ -162,6 +162,9 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken) {
162
163
ITwitchApiProxy? botApi = await db.ConfigureApiAndRefreshToken(botUser, this._api, stoppingToken);
164
if (null != botApi) {
165
+ // Ensure the twitch client has the most up-to-date password
166
+ this._client.TwitchOAuthToken = botApi.OAuth?.AccessToken;
167
+
168
// Trim channels that aren't live
169
IEnumerable<string> liveUsers = await botApi.GetChannelsLive(usersWithBotEnabled
170
.Where(u => null != u.TwitchId)
0 commit comments