-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReminderBot.py
More file actions
61 lines (57 loc) · 2.81 KB
/
ReminderBot.py
File metadata and controls
61 lines (57 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from pygame import *
from time import *
Initialsec = time()
print("Welcome to the Reminder Program")
print("You will be notified for: ")
print("1. Drinking Water\n2. Eye Exercise\n3. Physical Exercise")
while True:
currentsec = time()
mixer.init()
if int(currentsec-Initialsec) == 900:
mixer.music.load("eye.mp3")
mixer.music.set_volume(4)
mixer.music.play(-1)
while True:
ans = input("If your done then type done: ")
if ans == "done":
print("Thanks Mr.Shoumik for your response. Eye exercise Done!!!")
mixer.music.stop()
Initialsec = time()
f = open("Shoumik.txt", "a")
f.write(f"Eye Exercise-{ctime(Initialsec)}\n\n")
f.close()
while True:
currentsec = time()
if int(currentsec - Initialsec) == 600:
mixer.music.load("pani.mp3")
mixer.music.set_volume(4)
mixer.music.play(-1)
while True:
ans = input("If your done then type done: ")
if ans == "done":
print("Thanks Mr.Shoumik for your response. Drinking Water Done!!!")
mixer.music.stop()
Initialsec = time()
f = open("Shoumik.txt", "a")
f.write(f"Water Drinking-{ctime(Initialsec)}\n\n")
f.close()
while True:
currentsec = time()
if int(currentsec - Initialsec) == 600:
mixer.music.load("physical.mp3")
mixer.music.set_volume(4)
mixer.music.play(-1)
while True :
ans = input("If your done then type done: ")
if ans == "done":
print("Thanks Mr.Shoumik for your response. Physical exercise done!!!")
mixer.music.stop()
Initialsec = time()
f = open("Shoumik.txt", "a")
f.write(f"Physical Exercise-{ctime(Initialsec)}\n\n")
f.close()
break
break
break
break
break