This is just like any purge command, but in an event listener!

If you mention the word "Purge" in any channel, you'll get a message sent to the channel where you can purge 2-99 Messages in that channel. REQUIRES BAN PERMS.
Open one to see its blocks and what it costs.
Create your bot in Kite for free, then add Purge from the Marketplace in your app and change anything you like in the editor.
Get started
Kite
Kite
Add templates or build commands with blocks and AI. Free to start, hosted 24/7.