Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Nullinside.Api.TwitchBot/Services/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> liveUsers = await botApi.GetChannelsLive(usersWithBotEnabled
.Where(u => null != u.TwitchId)
Expand Down
Loading