diff --git a/README.md b/README.md index 1c348c6fe4ab8d637e7ac6f5fe68de367d7fa2b5..104d72ee94b5c21b9727d384d8d3d86e171e19ef 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Bot discord de gestion de liste de courses -The purpose of this bot is to manages the shopping lists of a community using discord dans $command. \ No newline at end of file +The purpose of this bot is to manages the shopping lists of a community using discord dans .command. \ No newline at end of file diff --git a/src/corps.js b/src/corps.js index f1ddd50248480aeab97f2b504aca386464cfca2d..93c7aef7348c81cc42a1cf81505ec7bc49739652 100644 --- a/src/corps.js +++ b/src/corps.js @@ -82,11 +82,7 @@ function add(args, message){ } message.channel.send("Vos articles ont bien été ajoutés."); - //on affiche la liste: - let rep = ''; - for (const [key, value] of map) - rep += `**${value}** ${key}\n`; - message.channel.send(rep); + list(message); }