Commit 98e38019 authored by Sigfried Seldeslachts's avatar Sigfried Seldeslachts
Browse files

Male word detector fix

parent 65a813c1
Pipeline #10661 passed with stage
in 30 seconds
const words = ['man', 'guys', 'guyz', 'gentlemen', 'men', 'male', 'boys', 'manne', 'mannen'];
module.exports = async (msg) => {
if (msg.author.bot) return;
if (typeof msg.content !== "string") return;
try {
const split = msg.content.split(' ');
const matches = words.some(word => split.includes(word));
const split = msg.content.split(' ');
const matches = words.some(word => split.includes(word));
if (matches) {
msg.react("👙");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment