From 606b0a01205d81b7d72ce6c7b9064325abd0988c Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 19:11:37 -0500 Subject: [PATCH] Undeclared message --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 40b5f34..2ddb294 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ client.on("ready", () => { console.log("Logged in as " + client.user.tag + "!"); }); -client.on("message", () => { +client.on("message", message => { switch (message.content.toLowerCase()) { case '$score': startScoring(message);