From aca3ecdb5ccceafa995e6bf2005d42d083c07ef1 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 24 Oct 2013 23:48:13 +0200 Subject: move skylog to github https://github.com/looran/skylog git clone https://github.com/looran/skylog --- skylog/skydbg.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 skylog/skydbg.py (limited to 'skylog/skydbg.py') diff --git a/skylog/skydbg.py b/skylog/skydbg.py deleted file mode 100644 index ae55f4b..0000000 --- a/skylog/skydbg.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python - -# skydbg v0.1 -# Logs all skype notifications -# Usage: python skydbg.py >> dbg.log & -# 2013, Laurent Ghigonis - -import Skype4Py -import time -import sys -import atexit - -do_exit = False - -def cb_exit(): - print sys.stderr, "cb_exit()" - print "EXIT" - -def cb_notify(notification): - t = time.strftime("%Y%m%d-%H%M%S", time.localtime()) - print "%s %s" % (t, notification) - sys.stdout.flush() - -atexit.register(cb_exit) -skype = Skype4Py.Skype() -skype.RegisterEventHandler('Notify', cb_notify) -skype.Attach() -print >> sys.stderr, 'Started' - -while True: - time.sleep(0.1) - if do_exit is True: - break -- cgit v1.2.3-59-g8ed1b