예제 #1
0
 def _have_applied_incense(self):
     for applied_item in inventory.applied_items().all():
         if applied_item.expire_ms > 0:
                 mins = format_time(applied_item.expire_ms * 1000)
                 self.logger.info("Not applying incense, currently active: %s, %s minutes remaining", applied_item.item.name, mins)
                 return False
         else:
                 return True
예제 #2
0
 def _have_applied_incense(self):
     for applied_item in inventory.applied_items().all():
         if applied_item.expire_ms > 0:
             mins = format_time(applied_item.expire_ms * 1000)
             self.logger.info(
                 "Not applying incense, currently active: %s, %s minutes remaining",
                 applied_item.item.name, mins)
             return False
         else:
             return True
예제 #3
0
 def request_incensetime(self, update):
         self.bot.logger.info("Time Started")
         currentincense = inventory.applied_items().get('401')
         self.bot.logger.info(currentincense)
         #self.bot.logger.info(currentincense.expire_ms)
         return True
예제 #4
0
 def request_incensetime(self, update):
     self.bot.logger.info("Time Started")
     currentincense = inventory.applied_items().get('401')
     self.bot.logger.info(currentincense)
     #self.bot.logger.info(currentincense.expire_ms)
     return True