Skip to content

Commit

Permalink
changed method of getting channel
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriklhf authored Jun 29, 2021
1 parent cee0604 commit a703398
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OkayegTeaTimeCSharp/Twitch/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public static class Config

public static List<string> GetChannels()
{
return new OkayegTeaTimeContext().Bots.Where(b => b.Id == 1).FirstOrDefault().Channels.Split().ToList();
#error check, if done correctly
return new OkayegTeaTimeContext().Bots.Where(b => b.Username == Resources.Username).FirstOrDefault().Channels.Split().ToList();
}

public static List<string> GetNotAllowedChannels()
Expand All @@ -29,4 +30,4 @@ public static List<string> GetNotLoggedChannels()
return Resources.NotLoggedChannels.Split().ToList();
}
}
}
}

0 comments on commit a703398

Please sign in to comment.