Update QuoteCommands.cs
This commit is contained in:
parent
f4870c4678
commit
c7e694fc1d
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user