diff --git a/CHANGELOG.md b/CHANGELOG.md index a180bc5..3530247 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,19 +2,34 @@ *a,c,f,r,o* +## [6.0.6] - 16.03.2025 + +### Added + +- Added youtube live stream notification support for `.streamadd` + - it only works by using an invidious instance (with a working api) from data/searches.yml + +### Fixed + +- Fixed `.hangman` not receiving input sometimes +- Fixed `.sfl` and similar toggles not working +- Fixed `.antialt` and other protection commands not properly turning on +- Fixed `%bot.time%` and `%bot.date%` placeholders showing wrong date. + - No longer a timestamp + ## [6.0.5] - 15.03.2025 - ### Added +### Added - Aded a title in `.whosplaying` - Added a crown emoji next to commands if -v 1 or -v2 option is specified - ### Changed +### Changed - `.remind` looks better - `.savechat` no longer owner only, up to 1000 messages - unlimited if ran by the bot owner - ### Fixed +### Fixed - `.ropl` fixed diff --git a/src/EllieBot/Db/Models/FollowedStream.cs b/src/EllieBot/Db/Models/FollowedStream.cs index 2a0c83c..f6d023d 100644 --- a/src/EllieBot/Db/Models/FollowedStream.cs +++ b/src/EllieBot/Db/Models/FollowedStream.cs @@ -19,9 +19,9 @@ public class FollowedStream public ulong GuildId { get; set; } public ulong ChannelId { get; set; } public string Username { get; set; } - public string? PrettyName { get; set; } = null; + public string PrettyName { get; set; } = null; public FType Type { get; set; } - public string? Message { get; set; } = null; + public string Message { get; set; } = null; protected bool Equals(FollowedStream other) => ChannelId == other.ChannelId diff --git a/src/EllieBot/EllieBot.csproj b/src/EllieBot/EllieBot.csproj index 32718cb..e3e2d15 100644 --- a/src/EllieBot/EllieBot.csproj +++ b/src/EllieBot/EllieBot.csproj @@ -4,7 +4,7 @@ <Nullable>enable</Nullable> <ImplicitUsings>true</ImplicitUsings> <SatelliteResourceLanguages>en</SatelliteResourceLanguages> - <Version>6.0.5</Version> + <Version>6.0.6</Version> <!-- Output/build --> <RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory> diff --git a/src/EllieBot/Modules/Searches/_common/StreamNotifications/Providers/YouTubeProvider.cs b/src/EllieBot/Modules/Searches/_common/StreamNotifications/Providers/YouTubeProvider.cs index bd8afb1..0983e64 100644 --- a/src/EllieBot/Modules/Searches/_common/StreamNotifications/Providers/YouTubeProvider.cs +++ b/src/EllieBot/Modules/Searches/_common/StreamNotifications/Providers/YouTubeProvider.cs @@ -142,6 +142,9 @@ public sealed partial class YouTubeProvider : Provider isLive = true; } + if (vid is null) + return null; + var avatarUrl = channel?.AuthorThumbnails?.Select(x => x.Url).LastOrDefault(); return new StreamData() @@ -175,7 +178,10 @@ public sealed partial class YouTubeProvider : Provider var streamData = await Task.WhenAll(group.Select(GetStreamDataAsync)); foreach (var data in streamData) - results.Add(data); + { + if (data is not null) + results.Add(data); + } } return results; diff --git a/src/EllieBot/Services/GrpcApi/XpSvc.cs b/src/EllieBot/Services/GrpcApi/XpSvc.cs index ff8db41..8aced25 100644 --- a/src/EllieBot/Services/GrpcApi/XpSvc.cs +++ b/src/EllieBot/Services/GrpcApi/XpSvc.cs @@ -35,8 +35,6 @@ public class XpSvc : GrpcXp.GrpcXpBase, IGrpcSvc, IEService if (guild is null) throw new RpcException(new Status(StatusCode.NotFound, "Guild not found")); - var isServerExcluded = false; - var reply = new GetXpSettingsReply(); var settings = await _xp.GetFullXpSettingsFor(request.GuildId);