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) {