From 36af1278457422ac8abd83b0358a5ad83739cd82 Mon Sep 17 00:00:00 2001 From: West14 <30056636+West14@users.noreply.github.com> Date: Mon, 3 Jan 2022 15:32:40 +0200 Subject: [PATCH] Put mesage text to lower case when matching animations. --- modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs index 8de1599..4ffbf7e 100644 --- a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs +++ b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs @@ -53,7 +53,7 @@ namespace West.Entertainment.Handler.Fun var lastUseOption = await GetLastUseOption(); if (animationFileId.IsNullOrEmpty() - || !AnimationMatch.IsMatch(Message!.Text!) + || !AnimationMatch.IsMatch(Message!.Text!.ToLower()) || !CanHandle() || lastUseOption.GetValue() > DateTime.Now) return false;