A connections chat is not sent to itself.
So a second connection should see messages of the same user.
So your bot code should be able to see messages sent via the Twitch Chat box in a browser.
Sounds like your PircBotX is deliberately ignoring itself to stop feedback loops, as your PBX should be able to see messages sent from another connection