Skip to content

Commit

Permalink
feat: turn of light after 19:00
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Jan 4, 2024
1 parent 794b0a2 commit 1ea17bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flappytime.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def lights_off():
# we can overwrite: forced or own message
send_message(formatted_message)

if datetime.now().weekday() in (5, 6):
if datetime.now().weekday() in (5, 6) or datetime.now().hour > 19:
# on weekends, light should be turned off
# after 19:00 light should be turned off
lights_off()

0 comments on commit 1ea17bc

Please sign in to comment.