You're going to have to make a bind to say something whenever you get a goomba, then. You can open up console and type:
bind "p" "say Pyro is a hard class."
This bind will make you say "Pyro is a hard class" whenever you press the p key. Feel free to change the message or key.