From 75f5cfde297bba80e8b259b924d876bdcc4bd738 Mon Sep 17 00:00:00 2001 From: Toastie Date: Fri, 13 Dec 2024 22:51:14 +1300 Subject: [PATCH] .dmcmd will now correctly block commands in dms, not globally timely will no longer require guild context, as dmcmd .timely will do the same thing updated changelog, updated version --- CHANGELOG.md | 16 ++++++++++++++++ src/EllieBot/EllieBot.csproj | 2 +- src/EllieBot/Modules/Gambling/Gambling.cs | 1 - .../GlobalPermissions/GlobalPermissionService.cs | 4 ++-- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2787d23..cd20f2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ Mostly based on [keepachangelog](https://keepachangelog.com/en/1.1.0/) except date format. a-c-f-r-o +## [5.3.1] - 13.12.2024 + +## Changed + +- `.translate` will now use 2 embeds, to allow for longer messages +- Added role icon to `.inrole`, if it exists +- `.honeypot` will now add a 'Honeypot' as a ban reason. + +## Fixed + +- `.winlb` looks better, has a title, shows 9 entries now +- `.sar ex` help updated +- `.banner` partially fixed, it still can't show global banners, but it will show guild ones correctly, in a good enough size +- `.sclr` will now show correct color hexes without alpha +- `.dmcmd` will now correctly block commands in dms, not globally + ## [5.3.0] - 10.12.2024 ## Added diff --git a/src/EllieBot/EllieBot.csproj b/src/EllieBot/EllieBot.csproj index e85f15f..815c7ec 100644 --- a/src/EllieBot/EllieBot.csproj +++ b/src/EllieBot/EllieBot.csproj @@ -4,7 +4,7 @@ enable true en - 5.3.0 + 5.3.1 $(MSBuildProjectDirectory) diff --git a/src/EllieBot/Modules/Gambling/Gambling.cs b/src/EllieBot/Modules/Gambling/Gambling.cs index 35f3eb3..fe7f00c 100644 --- a/src/EllieBot/Modules/Gambling/Gambling.cs +++ b/src/EllieBot/Modules/Gambling/Gambling.cs @@ -135,7 +135,6 @@ public partial class Gambling : GamblingModule }); [Cmd] - [RequireContext(ContextType.Guild)] public async Task Timely() { var val = Config.Timely.Amount; diff --git a/src/EllieBot/Modules/Permissions/GlobalPermissions/GlobalPermissionService.cs b/src/EllieBot/Modules/Permissions/GlobalPermissions/GlobalPermissionService.cs index 1047eaf..655163f 100644 --- a/src/EllieBot/Modules/Permissions/GlobalPermissions/GlobalPermissionService.cs +++ b/src/EllieBot/Modules/Permissions/GlobalPermissions/GlobalPermissionService.cs @@ -92,13 +92,13 @@ public class GlobalPermissionService : IExecPreCommand, IEService { if (priv) { - if (bs.Blocked.Commands.Add(commandName)) + if (bs.DmBlocked.Commands.Add(commandName)) { added = true; } else { - bs.Blocked.Commands.Remove(commandName); + bs.DmBlocked.Commands.Remove(commandName); added = false; }