From 175ac0d039e3402f51d3df31030d68140df402ff Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Thu, 6 Jan 2022 15:34:19 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=BE=D0=B1=D1=89=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BE=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B8=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81.=20=D0=A4=D0=B8?= =?UTF-8?q?=D0=BA=D1=81=20afk=20delete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/setafk.js | 5 +++-- languages/ru-RU/general/setafk.json | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/General/setafk.js b/commands/General/setafk.js index 235d3bc1..aae18653 100644 --- a/commands/General/setafk.js +++ b/commands/General/setafk.js @@ -23,14 +23,15 @@ class Setafk extends Command { if (data.userData.afk) { data.userData.afk = null; await data.userData.save(); - message.sendT("general/setafk:DELETED", { + return message.sendT("general/setafk:DELETED", { username: message.author.username }); }; }; message.success("general/setafk:SUCCESS", { - reason + reason, + prefix: data.guild.prefix }); data.userData.afk = reason; diff --git a/languages/ru-RU/general/setafk.json b/languages/ru-RU/general/setafk.json index 765b3883..5bc4c4fa 100644 --- a/languages/ru-RU/general/setafk.json +++ b/languages/ru-RU/general/setafk.json @@ -3,7 +3,7 @@ "USAGE": "{{prefix}}setafk [причина/delete]", "EXAMPLES": "{{prefix}}setafk Сру =)", "MISSING_REASON": "Укажите причину AFK! (не больше 250 символов)", - "SUCCESS": "Теперь вы AFK по причине: {{reason}}", + "SUCCESS": "Теперь вы AFK по причине: **{{reason}}**\nНапишите {{prefix}}afk delete, чтобы принудительно отключить AFK", "DELETED": "**{{username}}**, ваш AFK статус удалён!", - "IS_AFK": "**{{user}}** сейчас AFK, причина:\n```{{reason}}```" + "IS_AFK": "**{{user}}** сейчас AFK, причина:\n**`{{reason}}`**" } \ No newline at end of file