Fixed follower count for twitch stream notifications

This commit is contained in:
Master Kwoth 2017-09-28 22:36:36 +02:00
parent 5d14c3cbcf
commit 6192f84141
2 changed files with 3 additions and 3 deletions

View File

@ -45,12 +45,12 @@ namespace NadekoBot.Modules.Searches.Common
public int Viewers { get; set; } public int Viewers { get; set; }
public string Game { get; set; } public string Game { get; set; }
public ChannelInfo Channel { get; set; } public ChannelInfo Channel { get; set; }
public int Followers { get; set; }
public class ChannelInfo public class ChannelInfo
{ {
public string Status { get; set; } public string Status { get; set; }
public string Logo { get; set; } public string Logo { get; set; }
public int Followers { get; set; }
} }
} }
@ -58,7 +58,7 @@ namespace NadekoBot.Modules.Searches.Common
public string Title => Stream?.Channel?.Status; public string Title => Stream?.Channel?.Status;
public bool Live => IsLive; public bool Live => IsLive;
public string Game => Stream?.Game; public string Game => Stream?.Game;
public int FollowerCount => Stream?.Followers ?? 0; public int FollowerCount => Stream?.Channel?.Followers ?? 0;
public string Url { get; set; } public string Url { get; set; }
public string Icon => Stream?.Channel?.Logo; public string Icon => Stream?.Channel?.Logo;
} }

View File

@ -20,7 +20,7 @@ namespace NadekoBot.Services.Impl
private readonly IBotCredentials _creds; private readonly IBotCredentials _creds;
private readonly DateTime _started; private readonly DateTime _started;
public const string BotVersion = "1.10.0"; public const string BotVersion = "1.10.1";
public string Author => "Kwoth#2560"; public string Author => "Kwoth#2560";
public string Library => "Discord.Net"; public string Library => "Discord.Net";