Db fixed, donators and qutoes are working.

This commit is contained in:
Kwoth 2016-08-24 20:56:41 +02:00
parent acd1480cb1
commit 180911944e

View File

@ -23,6 +23,8 @@ namespace NadekoBot.Modules.Utility
if (string.IsNullOrWhiteSpace(keyword)) if (string.IsNullOrWhiteSpace(keyword))
return; return;
keyword = keyword.ToUpperInvariant();
Quote quote; Quote quote;
using (var uow = DbHandler.Instance.GetUnitOfWork()) using (var uow = DbHandler.Instance.GetUnitOfWork())
{ {
@ -32,7 +34,7 @@ namespace NadekoBot.Modules.Utility
if (quote == null) if (quote == null)
return; return;
await channel.SendMessageAsync(":megaphone: " + quote.Text); await channel.SendMessageAsync("📣 " + quote.Text);
} }
[LocalizedCommand, LocalizedDescription, LocalizedSummary] [LocalizedCommand, LocalizedDescription, LocalizedSummary]