From 282d79077c15263b61240635de91d3c20b12c19b Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 4 Jan 2022 01:32:49 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Administration/backup.js | 10 +++++----- languages/ru-RU/administration/backup.json | 2 +- languages/ru-RU/fun/tictactoe.json | 5 +++++ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 languages/ru-RU/fun/tictactoe.json diff --git a/commands/Administration/backup.js b/commands/Administration/backup.js index de84ca4e..62a62bf5 100644 --- a/commands/Administration/backup.js +++ b/commands/Administration/backup.js @@ -1,7 +1,6 @@ const Command = require("../../base/Command.js"), Discord = require("discord.js"), - backup = require("discord-backup"), - Sentry = require("@sentry/node"); + backup = require("discord-backup"); class Backup extends Command { constructor(client) { @@ -37,7 +36,7 @@ class Backup extends Command { message.error("misc:CANNOT_DM"); }); }).catch((err) => { - Sentry.captureException(err); + console.error(err); return message.error("misc:ERR_OCCURRED"); }); } else if (status === "load") { @@ -62,7 +61,7 @@ class Backup extends Command { backup.remove(backupID); message.author.send(message.translate("administration/backup:LOAD_SUCCESS")); }).catch((err) => { - Sentry.captureException(err); + console.error(err); // If an error occurenced return message.error("misc:ERR_OCCURRED"); }); @@ -96,7 +95,8 @@ class Backup extends Command { message.channel.send({ embeds: [embed] }); - }).catch(() => { + }).catch((err) => { + console.error(err); // if the backup wasn't found return message.error("administration/backup:NO_BACKUP_FOUND", { backupID diff --git a/languages/ru-RU/administration/backup.json b/languages/ru-RU/administration/backup.json index ff760278..f132de6b 100644 --- a/languages/ru-RU/administration/backup.json +++ b/languages/ru-RU/administration/backup.json @@ -4,7 +4,7 @@ "EXAMPLES": "{{prefix}}backup create\n{{prefix}}backup load 123456789098765432\n{{prefix}}backup info 123456789098765432", "MISSING_STATUS": "Выберите действие: `create`, `load`, `info` или `remove`!", "MISSING_BACKUP_ID": "Укажите ID резервной копии!", - "NO_BACKUP_FOUND": "Резервных копий для `{{backupID}} не найдено`", + "NO_BACKUP_FOUND": "Резервных копий с ID `{{backupID}}` не найдено", "TIMES_UP": "Время вышло! Используйте команду снова!", "SUCCESS_PUBLIC": "Резервная копия успешно создана! ID резервной копии был отправлен вам в ЛС!", "SUCCESS_PRIVATE": "Вот ID вашей резервной копии: `{{backupID}}`, используйте его для восстановления на другом сервере!", diff --git a/languages/ru-RU/fun/tictactoe.json b/languages/ru-RU/fun/tictactoe.json new file mode 100644 index 00000000..303d1877 --- /dev/null +++ b/languages/ru-RU/fun/tictactoe.json @@ -0,0 +1,5 @@ +{ + "DESCRIPTION": "Крестики-нолики!", + "USAGE": "{{prefix}}tictactoe", + "EXAMPLES": "{{prefix}}tictactoe" +} \ No newline at end of file