Skip to content

Commit

Permalink
Teste
Browse files Browse the repository at this point in the history
  • Loading branch information
hchoki committed Nov 8, 2023
1 parent 44ac586 commit 3a5c3d6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,24 @@ module.exports = (client, message) => {
if (catWords.test(message.content)) {
message.reply(`https://cataas.com/cat?a=${+Math.floor(Math.random() * 9999)}`);
}

// Pompoarismo
if (message.content.toLowerCase().includes('pompoarismo')) {
const sendTimedMessages = (repeatCount) => {
if (repeatCount === 0) return;

message.channel.send('Prende').then(() => {
setTimeout(() => {
message.channel.send('Solta').then(() => {
setTimeout(() => {
sendTimedMessages(repeatCount - 1);
}, 5000);
});
}, 5000);
});
};

// Start the first set of timed messages
sendTimedMessages(5);
}
};

0 comments on commit 3a5c3d6

Please sign in to comment.