Пример #1
0
        public async Task GetAccount(string identifier)
        {
            try
            {
                var quotes = _repo.GetQuotesByAuthor(identifier, GetServerId());

                if (quotes == null || quotes.Count < 1)
                {
                    await ReplyAsync($"No quotes by {identifier} was found.");
                }
                else
                {
                    ListAndSendQuotes(quotes, $"Quotes by {identifier}", "Type !GetQuotesAuthor <Author> to see this.");
                }
            }
            catch (Exception e)
            {
                await ReplyAsync(e.Message);
            }
        }