Change Phrases to sentences

main
Killian 4 years ago
parent 946a2ac970
commit 4cf94b2e73

@ -33,7 +33,7 @@ module.exports = async (bot) => {
// For every object in the body array add a field to the embed // For every object in the body array add a field to the embed
for (let languages of data) { for (let languages of data) {
// Field 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 // Send the message
let message = await channel.send(embed); let message = await channel.send(embed);
@ -47,7 +47,7 @@ module.exports = async (bot) => {
let newData = await getData(); let newData = await getData();
for (let languages of newData) { for (let languages of newData) {
// Field data // 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); message.edit(embedEdit);
}, bot.config.editTime); }, bot.config.editTime);

@ -10,9 +10,9 @@
- Language code - Language code
- Translated progress - Translated progress
- Approved progress - Approved progress
- Phrases count - Sentences count
- Phrases translated - Sentences translated
- Phrases approved - Sentences approved
- Words count - Words count
- Words translated - Words translated
- Words approved - Words approved

Loading…
Cancel
Save