🩹 delete message user said word in wrong block

This commit is contained in:
Axel Olausson Holtenäs 2022-04-17 22:09:05 +02:00
parent 2711ea4840
commit f9e7c70cee
No known key found for this signature in database
GPG key ID: 7BF6826B76382CBA

View file

@ -18,11 +18,11 @@ export default async (message: Message) => {
`No counter found for guild: ${guild?.name} (${guild?.id})`
);
const { word } = counter;
if (content === word)
if (content === word) {
channel?.send(`${author} said **${word}**.`);
logger?.verbose(`${author} said ${word} in ${channel}`);
return logger?.verbose(
`User: ${author?.tag} (${author?.id}) in guild: ${guild?.name} (${guild?.id}) said the counter word: ${word}`
);
channel?.send(`${author} said **${word}**.`);
logger?.verbose(`${author} said ${word} in ${channel}`);
}
};