Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

TempVoice/censoring.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Censoring.js

About

This package is able to filter words of a string and avoid common bypass methods like using different fonts or symboles between the words.

Installation

npm i censoring.js

Usage

const { censor } = require("censoring.js")

const string = "I dont like cats. C4ts are 𝓵𝓪𝔃𝔂 and attacking me all the time! I h-a.te them.."
const array = ["cats", "lazy", "hate"]
const replacement = "*"

const censored = censor(string, array, replacement)
console.log(censored) // I dont like **** **** are **** and attacking me all the time! I **** them..

Check

const { censorable } = require("censoring.js")

const string = "I dont like cats.."
const array = ["cats"]

const check = censorable(string, array)
console.log(censorable) // true

About

A npm package made for the TempVoice Discord bot to censor offensive channel names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published