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':
startScoring(message);
break;
case '$bulkdelete':
bulkDelete(message);
break;
default:
return;
}
if (message.content.toLowerCase().startsWith("$bulkdelete")) {
bulkDelete(message);
}
});
async function bulkDelete(message) {

Loading…
Cancel
Save