Ask coding questions

← Back to all posts
part of code that contains bad words.
mcdonaldsAt3Am

How do I store a list i can access. I made a blacklist word list. this list contains bad words that I dont want to show in repl.it. is there any way i can hide them? i tried using .env but that didnt work. code doesnt work properly. Bot deletes all mesages that are sent. and pings himself. bot deletes even non blacklisted words.

Voters
mcdonaldsAt3Am
Comments
hotnewtop
Coder100
InvisibleOne

if you are using node, you should just use bad-words
https://www.npmjs.com/package/bad-words