From a8767f1136e9520a5515bd14313b21adf41c3940 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 7 May 2022 08:28:23 +0200 Subject: [PATCH] .clubdesc will now have a nicer response --- CHANGELOG.md | 8 ++++++-- src/NadekoBot/Modules/Xp/Club/Club.cs | 16 +++++++++++++++- .../data/strings/responses/responses.en-US.json | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a35d59668..111a384a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,11 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. ## Unreleased -### [4.1.4] - 06-05-2022 +### Changed + +- `.clubdesc ` will now have a nicer response + +## [4.1.4] - 06-05-2022 ### Fixed @@ -52,7 +56,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. - Fixed `.deletexp` command - `.give` command should send DMs again -- `.modules` commanad now has a medusa module description +- `.modules` command now has a medusa module description ## [4.1.2] - 16.04.2022 diff --git a/src/NadekoBot/Modules/Xp/Club/Club.cs b/src/NadekoBot/Modules/Xp/Club/Club.cs index cdb123a36..8b510f8dc 100644 --- a/src/NadekoBot/Modules/Xp/Club/Club.cs +++ b/src/NadekoBot/Modules/Xp/Club/Club.cs @@ -319,9 +319,23 @@ public partial class Xp public async partial Task ClubDescription([Leftover] string desc = null) { if (_service.SetDescription(ctx.User.Id, desc)) - await ReplyConfirmLocalizedAsync(strs.club_desc_updated(Format.Bold(desc ?? "-"))); + { + desc = string.IsNullOrWhiteSpace(desc) + ? "-" + : desc; + + var eb = _eb.Create(ctx) + .WithAuthor(ctx.User) + .WithTitle(GetText(strs.club_desc_update)) + .WithOkColor() + .WithDescription(desc); + + await ctx.Channel.EmbedAsync(eb); + } else + { await ReplyErrorLocalizedAsync(strs.club_desc_update_failed); + } } [Cmd] diff --git a/src/NadekoBot/data/strings/responses/responses.en-US.json b/src/NadekoBot/data/strings/responses/responses.en-US.json index 9b5092d58..0e8bd7d7d 100644 --- a/src/NadekoBot/data/strings/responses/responses.en-US.json +++ b/src/NadekoBot/data/strings/responses/responses.en-US.json @@ -838,7 +838,7 @@ "club_user_ban_fail": "Failed to ban. You're either not the club owner, or that user is not in your club or applied to it.", "club_user_unbanned": "Unbanned user {0} in {1} club.", "club_user_unban_fail": "Failed to unban. You're either not the club owner, or that user is not in your club or applied to it.", - "club_desc_updated": "Updated club description to {0}", + "club_desc_update": "Club Description Updated", "club_desc_update_failed": "Failed changing club description.", "club_disbanded": "Club {0} has been disbanded", "club_disband_error": "Error. You are either not in a club, or you are not the owner of your club.",