Commits

Shinya Okano committed cef943b

refs #6 use get_skype api

  • Participants
  • Parent commits fa31f96
  • Branches t6

Comments (0)

Files changed (1)

File src/skypehub/management/commands/runskypebot.py

 from django.utils.daemonize import become_daemon
 from django.utils.importlib import import_module
 
-from skypehub.utils import skype
-
 
 class Command(BaseCommand):
     option_list = BaseCommand.option_list + (
             pidfile.close()
 
         from skypehub.handlers import on_message, on_time
+        from skypehub.utils import get_skype
 
         # load module
         for app in settings.INSTALLED_APPS:
             import_module("%s.skypebot" % app)
 
         # attach skype
+        skype = get_skype()
         on_message.skype = skype
         on_time.skype = skype
         skype.OnMessageStatus = on_message.dispatch