change when a function is called
This commit is contained in:
parent
2745467dbb
commit
5cabef8801
4
main.cjs
4
main.cjs
@ -121,15 +121,15 @@ client.on('messageCreate', message => {
|
|||||||
madlibNextMessage(message.content, client);
|
madlibNextMessage(message.content, client);
|
||||||
}
|
}
|
||||||
checkMessage(message);
|
checkMessage(message);
|
||||||
checkInsult(message);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('messageUpdate', (undefined, newMessage) => {
|
client.on('messageUpdate', (undefined, newMessage) => {
|
||||||
checkMessage(newMessage);
|
checkMessage(newMessage);
|
||||||
checkInsult(newMessage);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function checkMessage(message) {
|
function checkMessage(message) {
|
||||||
|
checkInsult(newMessage);
|
||||||
if (message.content == "<@1091120267851485215>, what are your pronouns?") {
|
if (message.content == "<@1091120267851485215>, what are your pronouns?") {
|
||||||
message.reply({ content: "My pronouns are she/her ☺️", allowedMentions: { repliedUser: false } })
|
message.reply({ content: "My pronouns are she/her ☺️", allowedMentions: { repliedUser: false } })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user