From 4cf94b2e7331e2ff2a9ebefd08288d3559692165 Mon Sep 17 00:00:00 2001 From: Killian Date: Wed, 9 Dec 2020 11:41:53 +0100 Subject: [PATCH] Change Phrases to sentences --- Events/ready.js | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Events/ready.js b/Events/ready.js index 00ed90e..7ccd186 100644 --- a/Events/ready.js +++ b/Events/ready.js @@ -33,7 +33,7 @@ module.exports = async (bot) => { // For every object in the body array add a field to the embed for (let languages of data) { // Field data - embed.addField(`${languages.name} (${languages.code})`, `Translated Progress: ${languages.translated_progress}%\nApproved progress: ${languages.approved_progress}%\nPhrases: ${languages.phrases}, Translated: ${languages.translated}, Approved: ${languages.approved}\nWords: ${languages.words}, Translated: ${languages.words_translated}, Approved: ${languages.words_approved}`); + embed.addField(`${languages.name} (${languages.code})`, `Translated Progress: ${languages.translated_progress}%\nApproved progress: ${languages.approved_progress}%\nSentences: ${languages.phrases}, Translated: ${languages.translated}, Approved: ${languages.approved}\nWords: ${languages.words}, Translated: ${languages.words_translated}, Approved: ${languages.words_approved}`); } // Send the message let message = await channel.send(embed); @@ -47,7 +47,7 @@ module.exports = async (bot) => { let newData = await getData(); for (let languages of newData) { // Field data - embedEdit.addField(`${languages.name} (${languages.code})`, `Translated Progress: ${languages.translated_progress}%\nApproved progress: ${languages.approved_progress}%\nPhrases: ${languages.phrases}, Translated: ${languages.translated}, Approved: ${languages.approved}\nWords: ${languages.words}, Translated: ${languages.words_translated}, Approved: ${languages.words_approved}`); + embedEdit.addField(`${languages.name} (${languages.code})`, `Translated Progress: ${languages.translated_progress}%\nApproved progress: ${languages.approved_progress}%\nSentences: ${languages.phrases}, Translated: ${languages.translated}, Approved: ${languages.approved}\nWords: ${languages.words}, Translated: ${languages.words_translated}, Approved: ${languages.words_approved}`); } message.edit(embedEdit); }, bot.config.editTime); diff --git a/README.md b/README.md index 34c9f7e..d2c1aee 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ - Language code - Translated progress - Approved progress -- Phrases count -- Phrases translated -- Phrases approved +- Sentences count +- Sentences translated +- Sentences approved - Words count - Words translated - Words approved