From 6192f84141c4c9405c6f5bebdb3610435fa727ee Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Thu, 28 Sep 2017 22:36:36 +0200 Subject: [PATCH] Fixed follower count for twitch stream notifications --- src/NadekoBot/Modules/Searches/Common/StreamResponses.cs | 4 ++-- src/NadekoBot/Services/Impl/StatsService.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/Common/StreamResponses.cs b/src/NadekoBot/Modules/Searches/Common/StreamResponses.cs index 4473af20..9eb791cb 100644 --- a/src/NadekoBot/Modules/Searches/Common/StreamResponses.cs +++ b/src/NadekoBot/Modules/Searches/Common/StreamResponses.cs @@ -45,12 +45,12 @@ namespace NadekoBot.Modules.Searches.Common public int Viewers { get; set; } public string Game { get; set; } public ChannelInfo Channel { get; set; } - public int Followers { get; set; } public class ChannelInfo { public string Status { 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 bool Live => IsLive; 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 Icon => Stream?.Channel?.Logo; } diff --git a/src/NadekoBot/Services/Impl/StatsService.cs b/src/NadekoBot/Services/Impl/StatsService.cs index f3b14e7c..82d312bf 100644 --- a/src/NadekoBot/Services/Impl/StatsService.cs +++ b/src/NadekoBot/Services/Impl/StatsService.cs @@ -20,7 +20,7 @@ namespace NadekoBot.Services.Impl private readonly IBotCredentials _creds; 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 Library => "Discord.Net";