1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-18 16:03:36 +03:00

Revert "Ban backticks in /remind"

This reverts commit ab260eea15.
This commit is contained in:
Macintxsh 2024-06-30 13:45:28 +05:00
parent ab260eea15
commit ee2a19409a
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2
4 changed files with 0 additions and 22 deletions

View file

@ -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);
}

View file

@ -1196,11 +1196,5 @@ namespace TeamOctolings.Octobot {
return ResourceManager.GetString("SettingsModeratorRole", resourceCulture);
}
}
internal static string RemindBannedText {
get {
return ResourceManager.GetString("RemindBannedText", resourceCulture);
}
}
}
}

View file

@ -681,7 +681,4 @@
<data name="SettingsModeratorRole" xml:space="preserve">
<value>Moderator role</value>
</data>
<data name="RemindBannedText" xml:space="preserve">
<value>Text contains banned characters!</value>
</data>
</root>

View file

@ -681,7 +681,4 @@
<data name="SettingsModeratorRole" xml:space="preserve">
<value>Роль модератора</value>
</data>
<data name="RemindBannedText" xml:space="preserve">
<value>Текст имеет запрещенные символы!</value>
</data>
</root>