From b59c4064b117cb5309b6d772ad2632cc1635c6b6 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 12 Jul 2021 01:48:56 +0200 Subject: [PATCH] ... (quoteprint) is now using smarttext --- src/NadekoBot/Modules/Utility/QuoteCommands.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/QuoteCommands.cs index f27e37ded..0192eed94 100644 --- a/src/NadekoBot/Modules/Utility/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/QuoteCommands.cs @@ -82,14 +82,10 @@ namespace NadekoBot.Modules.Utility .WithDefault(Context) .Build(); - if (CREmbed.TryParse(quote.Text, out var crembed)) - { - rep.Replace(crembed); - await ctx.Channel.EmbedAsync(crembed.ToEmbed(_eb), $"`#{quote.Id}` 📣 " + crembed.PlainText?.SanitizeAllMentions() ?? "") - .ConfigureAwait(false); - return; - } - await ctx.Channel.SendMessageAsync($"`#{quote.Id}` 📣 " + rep.Replace(quote.Text)?.SanitizeAllMentions()).ConfigureAwait(false); + var text = SmartText.CreateFrom(quote.Text); + text = rep.Replace(text); + + await ctx.Channel.SendAsync(_eb, $"`#{quote.Id}` 📣 " + text, true); } [NadekoCommand, Aliases]