mirror of
https://github.com/hanzoai/team.git
synced 2026-10-30 14:49:35 +00:00
18 lines
445 B
Plaintext
18 lines
445 B
Plaintext
from time import localtime
|
|
|
|
activities = {8: 'Sleeping',
|
|
9: 'Commuting',
|
|
17: 'Working',
|
|
18: 'Commuting',
|
|
20: 'Eating',
|
|
22: 'Resting' }
|
|
|
|
time_now = localtime()
|
|
hour = time_now.tm_hour
|
|
|
|
for activity_time in sorted(activities.keys()):
|
|
if hour < activity_time:
|
|
print activities[activity_time]
|
|
break
|
|
else:
|
|
print 'Unknown, AFK or sleeping!' |