Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Atribuir
- from datetime import timedelta
- #Def login
- DAY = str(str(datetime.now()).split("-")[2][:2])
- self.MagazineItem(DAY)
- #Abaixo da def sendboulg
- def MagazineItem(self, day):
- if int(day) >= 1 and int(day) <= 3:
- self.sendData("\x14" + "\x03", struct.pack("!iib", 2220, 1376301568, 30), True)
- elif int(day) >= 4 and int(day) <= 6:
- self.sendData("\x14" + "\x03", struct.pack("!iib", 2220, 1376301568, 30), True)
- elif int(day) >= 9 and int(day) <= 12:
- self.sendData("\x14" + "\x03", struct.pack("!iib", 2219, 1376301568, 30), True)
- elif int(day) >= 15 and int(day) <= 18:
- self.sendData("\x14" + "\x03", struct.pack("!iib", 2218, 1376301568, 30), True)
- elif int(day) >= 21 and int(day) <= 24:
- self.sendData("\x14" + "\x03", struct.pack("!iib", 606, 1376301568, 30), True)
- elif int(day) >= 27 and int(day) <= 31:
- self.sendData("\x14" + "\x03", struct.pack("!iib", 607, 1376301568, 30), True)
Advertisement
Add Comment
Please, Sign In to add comment