diff --git a/src/Nullinside.Api.TwitchBot/Services/MainService.cs b/src/Nullinside.Api.TwitchBot/Services/MainService.cs index 32ebfd7..18fdbff 100644 --- a/src/Nullinside.Api.TwitchBot/Services/MainService.cs +++ b/src/Nullinside.Api.TwitchBot/Services/MainService.cs @@ -162,6 +162,9 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken) { ITwitchApiProxy? botApi = await db.ConfigureApiAndRefreshToken(botUser, this._api, stoppingToken); if (null != botApi) { + // Ensure the twitch client has the most up-to-date password + this._client.TwitchOAuthToken = botApi.OAuth?.AccessToken; + // Trim channels that aren't live IEnumerable liveUsers = await botApi.GetChannelsLive(usersWithBotEnabled .Where(u => null != u.TwitchId)