From 66f92e8c48ad50a475be11349efcef584995ca88 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 20:11:07 -0500 Subject: [PATCH] Use startsWith() instead of content --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 9808adb..f59f836 100644 --- a/index.js +++ b/index.js @@ -12,12 +12,12 @@ client.on("message", message => { case '$score': startScoring(message); break; - case '$bulkdelete': - bulkDelete(message); - break; default: return; } + if (message.content.toLowerCase().startsWith("$bulkdelete")) { + bulkDelete(message); + } }); async function bulkDelete(message) {