Update QuoteCommands.cs
This commit is contained in:
parent
f4870c4678
commit
c7e694fc1d
@ -89,18 +89,7 @@ namespace NadekoBot.Modules.Utility
|
||||
|
||||
if (keywordquote == null)
|
||||
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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user