updated changelog, upped version to 6.0.6

This commit is contained in:
Toastie 2025-03-16 15:57:00 +13:00
parent 6d08ddee7d
commit 83701a9e0b
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
5 changed files with 28 additions and 9 deletions
CHANGELOG.md
src/EllieBot
Db/Models
EllieBot.csproj
Modules/Searches/_common/StreamNotifications/Providers
Services/GrpcApi

View file

@ -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

View file

@ -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

View file

@ -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>

View file

@ -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;

View file

@ -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);