Skip to content

Commit

Permalink
Update messageCommand.ts (#784)
Browse files Browse the repository at this point in the history
Quick potential fix for nyt logging processing loop
  • Loading branch information
Hipperooni authored May 29, 2024
1 parent 98ae75a commit f46a213
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/discord/utils/messageCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,20 +372,22 @@ give people a chance to answer 😄 If no one answers in 5 minutes you can try a
await message.react(heartEmojis[Math.floor(Math.random() * heartEmojis.length)]);
}

const wordleResult = await isWordle(message);
if (wordleResult) {
log.debug(F, 'Valid Wordle detected');
await message.react(emojiGet('nyt_wordle'));
}
const connectionsResult = await isConnections(message);
if (connectionsResult) {
log.debug(F, 'Valid Connections detected');
await message.react(emojiGet('nyt_connections'));
}
const theMiniResult = await isTheMini(message);
if (theMiniResult) {
log.debug(F, 'Valid The Mini detected');
await message.react(emojiGet('nyt_themini'));
if (!message.author.bot) {
const wordleResult = await isWordle(message);
if (wordleResult) {
log.debug(F, 'Valid Wordle detected');
await message.react(emojiGet('nyt_wordle'));
}
const connectionsResult = await isConnections(message);
if (connectionsResult) {
log.debug(F, 'Valid Connections detected');
await message.react(emojiGet('nyt_connections'));
}
const theMiniResult = await isTheMini(message);
if (theMiniResult) {
log.debug(F, 'Valid The Mini detected');
await message.react(emojiGet('nyt_themini'));
}
}
// else if (
// message.content.match(/(?:anyone|someone+there|here)\b/)
Expand Down

0 comments on commit f46a213

Please sign in to comment.