Browse Source

Use startsWith() instead of content

master
Abheek Dhawan 4 years ago
parent
commit
66f92e8c48
  1. 6
      index.js

6
index.js

@ -12,12 +12,12 @@ client.on("message", message => {
case '$score': case '$score':
startScoring(message); startScoring(message);
break; break;
case '$bulkdelete':
bulkDelete(message);
break;
default: default:
return; return;
} }
if (message.content.toLowerCase().startsWith("$bulkdelete")) {
bulkDelete(message);
}
}); });
async function bulkDelete(message) { async function bulkDelete(message) {

Loading…
Cancel
Save