How do i make an anti spam

how do i make an anti spam that mutes you for 5 minutes after 5 minutes you get unmuted

You could check out the discord-anti-spam NPM package. It has muting functionality