www-hipchat is a simple script that allows existing HipChat customers to add live chat to their website. When a link is clicked during business hours a room is created, the staff is notified and the user is redirected to the newly created room.
After downloading the source, run:
$>pip install -r requirements.txt
Rename settings.py.example
to settings.py
./views/chat_offline.tpl
is the template the user is forwarded to when chat is offline. Edit it however you like.
Your HipChat administrator API token
A room owner is assigned to a room when it’s created. In order to send messages to a particualr room, the owner ID is needed. See this page for help.
The ID of the room being notified of newly created chat requests. Get a list of your room IDs here.
The default topic of newly created rooms.
The time zone is used to convert UTC time to the user’s local time.
The hour (24-hour clock) at which chat becomes active.
The minute at which chat becomes active.
The hour (24-hour clock) at which chat closes.
The minute at which chat becomes active.
Server host
Server port
Enable debug mode. Set to False
in a production environment.
www-hipchat uses the bottle.py micro web-framework. Please see bottle’s deployment documentation for deployment instructions.