Basic XMPP bot example for HipChat using node.js
✓ Published0🌍 Public
Aalessioalex
Last edited Apr 27, 2011
Created on Nov 10, 2012
This example demonstrates a HipChat bot that responds to the `!weather` command by fetching and posting weather information into a group chat. The bot connects via XMPP using the `node-xmpp` library, joins a specified room, and listens for incoming groupchat messages. When a command is detected, it queries the Yahoo YQL API with the `request` library, parses the JSON response, and sends the formatted weather report back to the room. The animation shows the bot’s real-time message handling and reply cycle.
AI-generated description