Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
feat: input multiple words at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Jun 25, 2023
1 parent 170a17a commit c7660be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/moderator/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ module.exports = {
return;
}

data.words = data.words.filter(item => item !== word.toLowerCase());
const words = string.split(",") || [word];

for(const input of words) {
data.words = data.words.filter(item => item !== input.toLowerCase());
}

await data.save();

Expand Down

0 comments on commit c7660be

Please sign in to comment.