From e276c87683f42ef4932f708b484768966a4e3bda Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 5 Jan 2022 22:17:05 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D1=80=D0=BC=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=8B=D0=B9=20=D0=B2=D0=B8=D0=B4=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?choice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Fun/choice.js | 7 ++----- languages/ru-RU/fun/choice.json | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/commands/Fun/choice.js b/commands/Fun/choice.js index ba8ccd6b..7b61180f 100644 --- a/commands/Fun/choice.js +++ b/commands/Fun/choice.js @@ -25,12 +25,9 @@ class Choice extends Command { const m = await message.sendT("fun/choice:PROGRESS", null, false, false, "loading"); setTimeout(() => { - m.success("fun/choice:DONE", null, { - edit: true - }); const result = answers[parseInt(Math.floor(Math.random() * answers.length))]; - message.channel.send({ - content: "```" + result + "```" + m.success("fun/choice:DONE", { result }, { + edit: true }); }, 1500); } diff --git a/languages/ru-RU/fun/choice.json b/languages/ru-RU/fun/choice.json index e9fb2798..2ac58be2 100644 --- a/languages/ru-RU/fun/choice.json +++ b/languages/ru-RU/fun/choice.json @@ -4,6 +4,6 @@ "EXAMPLES": "{{prefix}}choice Вода/Огонь/Ветер", "MISSING": "Укажите больше двух вариантов!\n(либо используйте команду `flip`)", "EMPTY": "Кажется один из вариантов отсутствует... Попробуйте ещё раз!", - "PROGRESS": "Выбираю...", - "DONE": "Я выбрал:" + "PROGRESS": "Думаю...", + "DONE": "Я выбрал: **`{{result}}`**" } \ No newline at end of file