change when a function is called

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-09 22:16:44 -05:00
parent 2745467dbb
commit 5cabef8801

View File

@ -121,15 +121,15 @@ client.on('messageCreate', message => {
madlibNextMessage(message.content, client);
}
checkMessage(message);
checkInsult(message);
});
client.on('messageUpdate', (undefined, newMessage) => {
checkMessage(newMessage);
checkInsult(newMessage);
});
function checkMessage(message) {
checkInsult(newMessage);
if (message.content == "<@1091120267851485215>, what are your pronouns?") {
message.reply({ content: "My pronouns are she/her ☺️", allowedMentions: { repliedUser: false } })
}