You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 5 месеца
1234567891011121314151617181920212223242526272829303132
  1. from datetime import date
  2. import time
  3. from fetch_today_date import get_date
  4. from calcul import calcul
  5. from config import information
  6. from discord import webhook
  7. import sys
  8. date_dest = information['date']
  9. def main():
  10. while 1 :
  11. print("FarCry 6 daycounter")
  12. today = date.today()
  13. dest = get_date(date_dest)
  14. temps = calcul(today, dest)
  15. if temps == 0 :
  16. print("Mon role est maintenant terminé... je peux partir en paix..")
  17. webhook(u" FARCRY sort aujourd'hui ! Bandes de puuuutes. ")
  18. sys.exit(0)
  19. else :
  20. message = "Il reste " + str(temps) + " jours, avant la mort de la vie sociale d'adrien"
  21. webhook(message)
  22. time.sleep(86400)
  23. if __name__ == '__main__':
  24. try :
  25. main()
  26. except KeyboardInterrupt :
  27. print("Fermeture du programme...")