I’d suggest just timing them out for one second (commonly called a purge). You need to sent .timeout user 1 to the server as a privmsg. Not entirely sure what you’re using for a bot, but here is an example in mIRC.
on *:TEXT:!clear *:#: { msg $chan .timeout $1 1 }