Fixed trivia, closes #1578

This commit is contained in:
Master Kwoth 2017-09-11 19:12:49 +02:00
parent 62c016c7cf
commit 1a85825049

View File

@ -23,13 +23,13 @@ namespace NadekoBot.Modules.Games.Common.Trivia
public string ImageUrl { get; set; }
public string AnswerImageUrl { get; set; }
public string Answer { get; set; }
public string CleanAnswer { get; }
private string _cleanAnswer;
public string CleanAnswer => _cleanAnswer ?? (_cleanAnswer = Clean(Answer));
public TriviaQuestion(string q, string a, string c, string img = null, string answerImage = null)
{
this.Question = q;
this.Answer = a;
this.CleanAnswer = Clean(a);
this.Category = c;
this.ImageUrl = img;
this.AnswerImageUrl = answerImage ?? img;