예제 #1
0
 def start_ticker(self):
     if not self.eventLoop.is_alive():
         self.eventLoop.start()
     if not utils.can_auth():
         check_credentials()
         return False
     return True
예제 #2
0
def check_credentials():
    msg.debug('Print checking credentials.')
    if utils.can_auth():
        return
    if not utils.has_browser():
        msg.log('You need a Floobits account to use the Floobits plugin. Go to https://floobits.com to sign up.')
        return
    yield VUI.create_or_link_account, None, G.DEFAULT_HOST, False