Guest User

Promoções - Fisher - EditMice

a guest
Sep 6th, 2013
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.13 KB | None | 0 0
  1. #Atribuir
  2. from datetime import timedelta
  3. #Def login
  4. DAY = str(str(datetime.now()).split("-")[2][:2])
  5. self.MagazineItem(DAY)
  6. #Abaixo da def sendboulg  
  7.      def MagazineItem(self, day):
  8.                 if int(day) >= 1 and int(day) <= 3:
  9.                         self.sendData("\x14" + "\x03", struct.pack("!iib", 2220, 1376301568, 30), True)
  10.                 elif int(day) >= 4 and int(day) <= 6:
  11.                         self.sendData("\x14" + "\x03", struct.pack("!iib", 2220, 1376301568, 30), True)
  12.                 elif int(day) >= 9 and int(day) <= 12:
  13.                         self.sendData("\x14" + "\x03", struct.pack("!iib", 2219, 1376301568, 30), True)
  14.                 elif int(day) >= 15 and int(day) <= 18:
  15.                         self.sendData("\x14" + "\x03", struct.pack("!iib", 2218, 1376301568, 30), True)
  16.                 elif int(day) >= 21 and int(day) <= 24:
  17.                         self.sendData("\x14" + "\x03", struct.pack("!iib", 606, 1376301568, 30), True)
  18.                 elif int(day) >= 27 and int(day) <= 31:
  19.                         self.sendData("\x14" + "\x03", struct.pack("!iib", 607, 1376301568, 30), True)
Advertisement
Add Comment
Please, Sign In to add comment