From fb8ba8372702b43d926c03e3a8d6a575917ef415 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 18 Dec 2021 20:57:47 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=82=D0=BA=D0=B0=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Moderation/clear.js | 13 +------------ languages/ru-RU/moderation/clear.json | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/commands/Moderation/clear.js b/commands/Moderation/clear.js index 7b8b6627..ab03e633 100644 --- a/commands/Moderation/clear.js +++ b/commands/Moderation/clear.js @@ -64,15 +64,4 @@ class Clear extends Command { } }; -module.exports = Clear; - -function getNoun(number, one, two, five) { - let n = Math.abs(number); - n %= 100; - if (n >= 5 && n <= 20) return five; - n %= 10; - if (n === 1) return one; - if (n >= 2 && n <= 4) return two; - - return five; -}; \ No newline at end of file +module.exports = Clear; \ No newline at end of file diff --git a/languages/ru-RU/moderation/clear.json b/languages/ru-RU/moderation/clear.json index 6939f05a..28d61cec 100644 --- a/languages/ru-RU/moderation/clear.json +++ b/languages/ru-RU/moderation/clear.json @@ -5,6 +5,6 @@ "MISSING_AMOUNT": "Укажите кол-во сообщений для удаления!", "ALL_CONFIRM": "Все сообщения в канале будут удалены! Введите `confirm` для подтверждения", "CHANNEL_CLEARED": "Канал очищен!", - "CLEARED": "**{{amount}}** getNoun({{amount}}, \"сообщение\", \"сообщения\", \"сообщений\") было удалено!", + "CLEARED": "**{{amount}}** сообщений было удалено!", "CLEARED_MEMBER": "**{{amount}}** сообщений от **{{username}}** было удалено!" } \ No newline at end of file