From eabcfe1d27089155df033c29c0e1a2a18e7771da Mon Sep 17 00:00:00 2001 From: Craig Silverstein Date: Thu, 31 Jan 2013 18:35:02 -0800 Subject: [PATCH] I verified that the hipchat.py on toby can use room names, so do that. Summary: It's much easier to read (and figure out) than room numbers! Publish to hipchat every time this script restarts. If it's all the time, we want to know. We also want to know, when restarting the script, that it can actually successfully speak to hipchat. Test Plan: Manually ran the hipchat function in notify.py, with the room_id as '1s and 0s'. None yet. But once this is installed, I'll restart notify.py manually on toby. Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D2003 --- notify.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notify.py b/notify.py index 08d0c20..5a685d8 100644 --- a/notify.py +++ b/notify.py @@ -84,6 +84,10 @@ def build_message(last_version, version): if __name__ == '__main__': + hipchat_notify( + secrets.hipchat_room_id, + 'Restarting notify.py!') + last_version = None while True: