To receive whispers, you need to request the commands capability via CAP REQ :twitch.tv/commands and listen to the WHISPER commands.
I don’t think pircbot has a way to register a message handler for custom commands (pircbotx might have it), but it should have a way for you to check raw messages for it yourself. Someone more familiar with pircbot can probably tell you more.