Update QuoteCommands.cs

This commit is contained in:
Shikhir Arora 2017-03-02 11:24:37 -05:00 committed by GitHub
parent f4870c4678
commit c7e694fc1d

View File

@ -89,18 +89,7 @@ namespace NadekoBot.Modules.Utility
if (keywordquote == null) if (keywordquote == null)
return; return;
CREmbed crembed;
if (CREmbed.TryParse(keywordquote.Text, out crembed))
{
try { await Context.Channel.EmbedAsync(crembed.ToEmbed(), crembed.PlainText ?? "").ConfigureAwait(false); }
catch (Exception ex)
{
_log.Warn("Sending CREmbed failed");
_log.Warn(ex);
}
return;
}
await Context.Channel.SendMessageAsync("💬 " + keyword.ToLowerInvariant() + ": " + keywordquote.Text.SanitizeMentions()); await Context.Channel.SendMessageAsync("💬 " + keyword.ToLowerInvariant() + ": " + keywordquote.Text.SanitizeMentions());
} }