ViNo-community/vite-node-bot

Sanitize all user inputs - i.e. strip @s

Closed this issue · 1 comments

Strip out @s from any user input so that users cannot make the bot spam @everyone

Can show @ without pinging with:
dontPingMe = dontPingMe.replace('@', '@​\u200b');

I've replaced all instances of grabbing user input with either not showing it or replacing @.