예제 #1
0
 def masterserver_request(self,
                          query,
                          path=None,
                          decode=True,
                          cookie=False):
     if cookie:
         query['cookie'] = self.cookie
     return masterserver.request(query, path=path, decode=decode)
예제 #2
0
파일: bot.py 프로젝트: exbit/pyHoNBot
 def masterserver_request(self,query, path = None,decode = True, cookie = False):
     if cookie:
         query['cookie'] = self.cookie
     response = masterserver.request(query,path = path,decode = decode)
     if response and 'cookie' in response and response[0] == False:
         print('cookie expired, renewing')
         self.auth()
         #return self.masterserver_request(query,path,decode,cookie)
     return response
예제 #3
0
 def masterserver_request(self,
                          query,
                          path=None,
                          decode=True,
                          cookie=False):
     if cookie:
         query['cookie'] = self.cookie
     response = masterserver.request(query, path=path, decode=decode)
     if response and 'cookie' in response and response[0] == False:
         print('cookie expired, renewing')
         self.auth()
         #return self.masterserver_request(query,path,decode,cookie)
     return response
예제 #4
0
파일: bot.py 프로젝트: Theino/pyHoNBot
 def masterserver_request(self,query, path = None,decode = True, cookie = False):
     if cookie:
         query['cookie'] = self.cookie
     return masterserver.request(query,path = path,decode = decode)