I admit I'm still learning about regex, but wondered if something similar could be done so that it responds with one message if my nick had -afk attached to it, but a different message if it didn't.

To the OP, sorry to horn in on your topic, but this got me wondering.