From ed9b27663e07f8ebfd41944cd957763605162df8 Mon Sep 17 00:00:00 2001
From: Camille <ltheo2029@gmail.com>
Date: Tue, 23 Nov 2021 15:50:33 +0100
Subject: [PATCH] update add function

---
 README.md    | 2 +-
 src/corps.js | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 1c348c6..104d72e 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 f1ddd50..93c7aef 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);
 
 }
 
-- 
GitLab