From 444a537f1109ae40b2086bff495c5ade36b6b594 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 29 Oct 2023 18:23:56 +0500 Subject: [PATCH] add name to skipto --- commands/Music/skipto.js | 4 ++-- languages/en-US/music/skipto.json | 2 +- languages/en-US/suncountry/sendmessage.json | 8 -------- languages/ru-RU/music/skipto.json | 2 +- languages/ru-RU/suncountry/sendmessage.json | 8 -------- languages/uk-UA/music/skipto.json | 2 +- languages/uk-UA/suncountry/sendmessage.json | 8 -------- 7 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 languages/en-US/suncountry/sendmessage.json delete mode 100644 languages/ru-RU/suncountry/sendmessage.json delete mode 100644 languages/uk-UA/suncountry/sendmessage.json diff --git a/commands/Music/skipto.js b/commands/Music/skipto.js index 97f4c27d..5847b027 100644 --- a/commands/Music/skipto.js +++ b/commands/Music/skipto.js @@ -58,9 +58,9 @@ class Skipto extends BaseCommand { queue.node.skipTo(queue.tracks.at(position - 1)); interaction.success("music/skipto:SUCCESS", { - position, + track: queue.tracks.at(position - 1).title, }); - } else return interaction.error("music/skipto:ERROR", { position: position }); + } else return interaction.error("music/skipto:ERROR", { position }); } } diff --git a/languages/en-US/music/skipto.json b/languages/en-US/music/skipto.json index c54a3b7a..5fcee3d1 100644 --- a/languages/en-US/music/skipto.json +++ b/languages/en-US/music/skipto.json @@ -3,7 +3,7 @@ "USAGE": "[position]", "EXAMPLES": "skipto position:3", "POSITION": "Track number in the queue", - "SUCCESS": "Jumped to track number **{{position}}**", + "SUCCESS": "Jumped to track **{{track}}**", "ERROR": "Nothing found at position {{position}}", "NO_PREV_SONG": "You cannot go back, use the `back` command for that" } \ No newline at end of file diff --git a/languages/en-US/suncountry/sendmessage.json b/languages/en-US/suncountry/sendmessage.json deleted file mode 100644 index 74f92e46..00000000 --- a/languages/en-US/suncountry/sendmessage.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "DESCRIPTION": "Send an anonymous message to the selected channel", - "USAGE": "rpinfo [text] (attachment)\ninstalife [text] (attachment)", - "EXAMPLES": "sendmessage rpinfo text:Happy New Year, everyone!\nsendmessage instalife text:Accident at the Police Station! attachment:", - "RPINFO": "Send a message to RP Info", - "INSTALIFE": "Send a message to InstaLife", - "MESSAGE_SENT": "Message sent!\n{{message}}" -} \ No newline at end of file diff --git a/languages/ru-RU/music/skipto.json b/languages/ru-RU/music/skipto.json index 78e39964..12b8f103 100644 --- a/languages/ru-RU/music/skipto.json +++ b/languages/ru-RU/music/skipto.json @@ -3,7 +3,7 @@ "USAGE": "[position]", "EXAMPLES": "skipto position:3", "POSITION": "Номер трека в очереди", - "SUCCESS": "Выполнен переход на трек под номером **{{position}}**", + "SUCCESS": "Выполнен переход на трек **{{track}}**", "ERROR": "На позиции {{position}} ничего не найдено", "NO_PREV_SONG": "Вы не можете перейти назад, для этого используйте команду `back`" } \ No newline at end of file diff --git a/languages/ru-RU/suncountry/sendmessage.json b/languages/ru-RU/suncountry/sendmessage.json deleted file mode 100644 index 1fc49f1c..00000000 --- a/languages/ru-RU/suncountry/sendmessage.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "DESCRIPTION": "Отправить анонимноее сообщение в выбранный канал", - "USAGE": "rpinfo [text] (attachment)\ninstalife [text] (attachment)", - "EXAMPLES": "sendmessage rpinfo text:Всех с новым годом!\nsendmessage instalife text:Авария в ПУ! attachment:", - "RPINFO": "Отправить сообщение в RP Info", - "INSTALIFE": "Отправить сообщение в InstaLife", - "MESSAGE_SENT": "Сообщение отправлено!\n{{message}}" -} \ No newline at end of file diff --git a/languages/uk-UA/music/skipto.json b/languages/uk-UA/music/skipto.json index 2d0eb110..20e24c55 100644 --- a/languages/uk-UA/music/skipto.json +++ b/languages/uk-UA/music/skipto.json @@ -3,7 +3,7 @@ "USAGE": "[position]", "EXAMPLES": "skipto position:3", "POSITION": "Номер треку в черзі", - "SUCCESS": "Перехід на трек під номером **{{position}}**", + "SUCCESS": "Перехід на трек **{{track}}**", "ERROR": "На позиції {{position}} нічого не знайдено", "NO_PREV_SONG": "Ви не можете перейти назад, для цього використовуйте команду `back`" } \ No newline at end of file diff --git a/languages/uk-UA/suncountry/sendmessage.json b/languages/uk-UA/suncountry/sendmessage.json deleted file mode 100644 index 94acd3ff..00000000 --- a/languages/uk-UA/suncountry/sendmessage.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "DESCRIPTION": "Надіслати анонімне повідомлення до обраного каналу", - "USAGE": "rpinfo [текст] (вкладення)\ninstalife [текст] (вкладення)", - "EXAMPLES": "sendmessage rpinfo text:Всім з новим роком!\nsendmessage instalife text:Аварія в ВП! вкладення:<зображення>", - "RPINFO": "Надіслати повідомлення в RP Info", - "INSTALIFE": "Надіслати повідомлення в InstaLife", - "MESSAGE_SENT": "Повідомлення відправлено!\n{{message}}" -} \ No newline at end of file