From ba503b123e0a714925c325d8b34844ac5afe8fc0 Mon Sep 17 00:00:00 2001 From: danbulant Date: Thu, 3 Sep 2020 16:33:44 +0200 Subject: [PATCH] Add end command --- src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 07d2119..6048461 100644 --- a/src/index.js +++ b/src/index.js @@ -13,7 +13,12 @@ app if(msg.author.id === "694395936809418816" && msg.content === "!reset") { answers.clear(); challenge.clear(); - msg.reply("done."); + points.clear(); + msg.reply("Done."); + return false; + } else if(msg.author.id === "694395936809418816" && msg.content === "!end") { + challenge.set("type", 0); + msg.reply("Done."); return false; } else if(msg.author.id === "694395936809418816" && msg.content.startsWith("!start")) { var num = msg.content.split(" ")[1][0];