- Input: a chat message (string)
- Output: JSON describing the message's special content (string)
- Format: @username
- Description: a way to mention a user, always starts with an '@' and ends when hitting a non-word character
- Reference: How do @mentions work? – Help Center
- Format: (emoticonname)
- Description: ASCII strings representing 'custom' emoticons, no longer than 15 characters, contained in parenthesis (you can assume that anything matching this format is an emoticon)
- Reference: HipChat - Emoticons
- Format: http(s)://...
- Description: any URLs contained in the message, along with the page's title
See test cases in test/test_hip_chat.py
- sudo pip install -r requirements.txt
- py.test