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

Commit

Permalink
feat: push multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Jun 25, 2023
1 parent c7660be commit 82e27a4
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 @@ -141,7 +141,11 @@ module.exports = {
return;
}

data.words.push(word.toLowerCase());
const words = string.split(",") || [word];

for(const input of words) {
data.words.push(input.toLowerCase());
}

await data.save();

Expand Down

0 comments on commit 82e27a4

Please sign in to comment.