From ee2a19409af056e2c66cebda48ca76b85beca7c4 Mon Sep 17 00:00:00 2001 From: mctaylors Date: Sun, 30 Jun 2024 13:45:28 +0500 Subject: [PATCH] Revert "Ban backticks in /remind" This reverts commit ab260eea15a6f05fc0982276c096205c858d6db2. --- TeamOctolings.Octobot/Commands/RemindCommandGroup.cs | 10 ---------- TeamOctolings.Octobot/Messages.Designer.cs | 6 ------ TeamOctolings.Octobot/Messages.resx | 3 --- TeamOctolings.Octobot/Messages.ru.resx | 3 --- 4 files changed, 22 deletions(-) diff --git a/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs b/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs index 3b9f2c0..be53ed7 100644 --- a/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs +++ b/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs @@ -158,16 +158,6 @@ public sealed class RemindCommandGroup : CommandGroup return await _feedback.SendContextualEmbedResultAsync(failedEmbed, ct: CancellationToken); } - if (text.Contains('`')) - { - var failedEmbed = new EmbedBuilder() - .WithSmallTitle(Messages.RemindBannedText, bot) - .WithColour(ColorsList.Red) - .Build(); - - return await _feedback.SendContextualEmbedResultAsync(failedEmbed, ct: CancellationToken); - } - return await AddReminderAsync(timeSpan, text, data, channelId, executor, CancellationToken); } diff --git a/TeamOctolings.Octobot/Messages.Designer.cs b/TeamOctolings.Octobot/Messages.Designer.cs index e51cd9e..bbc1366 100644 --- a/TeamOctolings.Octobot/Messages.Designer.cs +++ b/TeamOctolings.Octobot/Messages.Designer.cs @@ -1196,11 +1196,5 @@ namespace TeamOctolings.Octobot { return ResourceManager.GetString("SettingsModeratorRole", resourceCulture); } } - - internal static string RemindBannedText { - get { - return ResourceManager.GetString("RemindBannedText", resourceCulture); - } - } } } diff --git a/TeamOctolings.Octobot/Messages.resx b/TeamOctolings.Octobot/Messages.resx index 494f19d..47e7d4f 100644 --- a/TeamOctolings.Octobot/Messages.resx +++ b/TeamOctolings.Octobot/Messages.resx @@ -681,7 +681,4 @@ Moderator role - - Text contains banned characters! - diff --git a/TeamOctolings.Octobot/Messages.ru.resx b/TeamOctolings.Octobot/Messages.ru.resx index 7ad3da4..2eef257 100644 --- a/TeamOctolings.Octobot/Messages.ru.resx +++ b/TeamOctolings.Octobot/Messages.ru.resx @@ -681,7 +681,4 @@ Роль модератора - - Текст имеет запрещенные символы! -