diff --git a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs index ce81450..3689789 100644 --- a/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs +++ b/modules/Entertainment/Handler/Fun/AbstractAnimationReply.cs @@ -51,10 +51,11 @@ namespace West.Entertainment.Handler.Fun var animationFileOption = await GetAnimationFileOption(); animationFileOption.SetValue(animation.FileId); _db.AddOrUpdate(animationFileOption); + + await Bot.SendTextMessageAsync(Chat.Id, "Animation has been set.", replyToMessageId: Message!.ReplyToMessage!.MessageId); } - // ReSharper disable once MemberCanBeProtected.Global - public virtual async Task HandleAnimation() + protected virtual async Task HandleAnimation() { var text = Message!.Text!.ToLower(); if (!AnimationMatch.IsMatch(text.ToLower()) || text.StartsWith("/set") || !CanHandle()) return false; @@ -99,11 +100,6 @@ namespace West.Entertainment.Handler.Fun { return await _db.UserValues.FindOrCreateOption(Chat.Id, $"{GetAnimationName()}NextUse"); } - - private async Task CanPunish() - { - return RepliedUser != null && await Bot.CanPunishMember(Chat, From, RepliedUser); - } protected virtual int? GetMessageIdToReply() => Message?.MessageId; }