-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBot.py
More file actions
725 lines (570 loc) · 26 KB
/
Copy pathBot.py
File metadata and controls
725 lines (570 loc) · 26 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
import pyttsx3
import speech_recognition as sr
import datetime
import wikipedia
import webbrowser
import os
import calendar
from datetime import *
from pptx import Presentation
active = False
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[0].id)
def speak(audio):
engine.say(audio)
engine.runAndWait()
error = 0
def randomOutput():
order = ["I don't think I can help you with this...Is there anything else I can do for you?", "I am not trained yet to do this task.", "This task does not exist in my current action list. You can consider adding it.", "Sorry, but I can not help you with this.", "I think you know better than me about this."]
global error
speak(order[error])
error = error + 1
if error==len(order):
error=0
def wishMe():
hour = int(datetime.datetime.now().hour)
if hour >= 0 and hour < 12:
speak("Good Morning Shreys!")
elif hour >= 12 and hour < 16:
speak("Good Afternoon Shreys!")
elif hour >=16 and hour < 19:
speak("Good Evening Shreys!")
else:
speak("Good Night Shreys")
def calculation():
speak("Tell the operation.")
Operation = takeCommand().lower()
if Operation == "plus":
speak("What are the two numbers.")
query = takeCommand()
query = query.replace("and", "")
splited = query.split()
FirstNumber = int(splited[0])
SecondNumber = int(splited[1])
add = "The sum of the numbers is", FirstNumber + SecondNumber, "."
speak(add)
elif Operation == "multiplication":
speak("What are the two numbers.")
query = takeCommand()
query = query.replace("and", "")
splited = query.split()
FirstNumber = int(splited[0])
SecondNumber = int(splited[1])
product = "The product of the numbers is", FirstNumber * SecondNumber, "."
speak(product)
elif Operation == "subtraction":
speak("What are the two numbers.")
query = takeCommand()
query = query.replace("and", "")
splited = query.split()
FirstNumber = int(splited[0])
SecondNumber = int(splited[1])
diff = "The difference of the numbers is", FirstNumber - SecondNumber, "."
speak(diff)
elif Operation == "division":
speak("What are the two numbers.")
query = takeCommand()
query = query.replace("and", "")
splited = query.split()
FirstNumber = int(splited[0])
SecondNumber = int(splited[1])
quot = "The quotient of the numbers is", FirstNumber / SecondNumber, "."
speak(quot)
elif Operation == "floor division":
speak("What are the two numbers.")
query = takeCommand()
query = query.replace("and", "")
splited = query.split()
FirstNumber = int(splited[0])
SecondNumber = int(splited[1])
fdiv = "The quotient of the numbers is", FirstNumber // SecondNumber, "."
speak(fdiv)
elif Operation == "square":
speak("What is the number.")
query = takeCommand()
Number = int(query)
sqr = "The number squared is", Number**2, "."
speak(sqr)
elif Operation == "cube":
speak("What are the number.")
query = takeCommand()
Number = int(query)
cube = "The cubed number is", Number**3, "."
speak(cube)
elif Operation == "exponent":
speak("What are the number and the exponent.")
query = takeCommand()
query = query.replace("and", "")
splited = query.split()
Number = int(splited[0])
Exponent = int(splited[1])
Answer = "The value of power is" + str(Number ** Exponent) + "."
speak(Answer)
print(Answer)
else:
speak("Invalid operation.")
def what_is_next_class():
from datetime import datetime
now = datetime.now()
y = now.strftime("%Y")
m = now.strftime("%m")
d = now.strftime("%d")
date = d + " " + m + " " + y
day = findDay(date)
from datetime import datetime
current = datetime.now()
h = current.strftime("%H")
m = current.strftime("%M")
time = int((int(h)*60) + int(m))
if day == "Monday":
if time < 540:
next_class = "social"
elif time < 590 and time > 540:
next_class = "hindi"
elif time < 640 and time > 590:
next_class = "chemistry"
elif time < 690 and time > 640:
next_class = "math"
elif time < 740 and time > 690:
next_class = "english"
elif time < 790:
next_class = "lunch"
elif time < 840:
next_class = "break"
if day == "Tuesday":
if time < 540:
next_class = "hindi"
elif time < 590 and time > 540:
next_class = "math"
elif time < 640 and time > 590:
next_class = "break"
elif time < 690 and time > 640:
next_class = "social"
elif time < 740 and time > 690:
next_class = "english"
elif time < 790:
next_class = "lunch"
elif time < 840:
next_class = "chemistry"
if day == "Wednesday":
if time < 540:
next_class = "social"
elif time < 590 and time > 540:
next_class = "Cultural Activities"
elif time < 640 and time > 590:
next_class = "break"
elif time < 690 and time > 640:
next_class = "english"
elif time < 740 and time > 690:
next_class = "hindi"
elif time < 790:
next_class = "lunch"
elif time < 840:
next_class = "biology"
if day == "Thursday":
if time < 540:
next_class = "english"
elif time < 590 and time > 540:
next_class = "hindi"
elif time < 640 and time > 590:
next_class = "physics"
elif time < 690 and time > 640:
next_class = "break"
elif time < 740 and time > 690:
next_class = "social"
elif time < 790:
next_class = "lunch"
elif time < 840:
next_class = "math"
if day == "Friday":
if time < 540:
next_class = "english"
elif time < 590 and time > 540:
next_class = "telugu"
elif time < 640 and time > 590:
next_class = "Computers"
elif time < 690 and time > 640:
next_class = "math"
elif time < 740 and time > 690:
next_class = "social"
elif time < 790:
next_class = "lunch"
elif time < 840:
next_class = "break"
if day == "Saturday":
if time < 540:
next_class = "social"
elif time < 590 and time > 540:
next_class = "physics"
elif time < 640 and time > 590:
next_class = "biology"
elif time < 690 and time > 640:
next_class = "math"
elif time < 740 and time > 690:
next_class = "math"
elif time < 790:
next_class = "lunch"
elif time < 840:
next_class = "break"
print(next_class)
speak(next_class)
def what_is_next_fiitjee_class():
from datetime import datetime
now = datetime.now()
y = now.strftime("%Y")
m = now.strftime("%m")
d = now.strftime("%d")
date = d + " " + m + " " + y
day = findDay(date)
from datetime import datetime
current = datetime.now()
h = current.strftime("%H")
m = current.strftime("%M")
time = int((int(h)*60) + int(m))
if day == "Monday":
next_class = "You don't have classes today"
if day == "Tuesday":
if time < 1020:
next_class = "maths"
elif time <1085 and time > 1020:
next_class = "physics"
elif time < 1150 and time > 1085:
next_class = "biology"
elif time >= 1150 :
next_class = "This is your last class"
if day == "Wednesday":
next_class = "You don't have classes today"
if day == "Thursday":
if time < 1020:
next_class = "maths"
elif time <1085 and time > 1020:
next_class = "physics"
elif time < 1150 and time > 1085:
next_class = "chemistry"
elif time >= 1150 :
next_class = "This is your last class"
if day == "Friday":
next_class = "You don't have classes today"
if day == "Saturday":
if time < 1020:
next_class = "intelligence quotient"
elif time <1085 and time > 1020:
next_class = "physics"
elif time < 1150 and time > 1085:
next_class = "biology"
elif time >= 1150 :
next_class = "This is your last class"
print(next_class)
speak(next_class)
def takeCommand():
r = sr.Recognizer()
with sr.Microphone() as source:
print("Listening...")
r.pause_threshold = 1
audio = r.listen(source)
try:
print("Recognizing...")
query = r.recognize_google(audio, language='en-in')
print(f"User said: {query}\n")
except Exception as e:
print(e)
print("Say that again please...")
return "None"
return query
def open_stellarium():
pass
def open_ppt():
prs = Presentation()
prs.save('test.pptx')
def create_ppt(name,slides):
"Create a powerpoint with name, title and text"
prs = Presentation()
layout = prs.slide_layouts[1]
for s in slides:
tit,cont = s.split("#")
slide = prs.slides.add_slide(layout)
slide.shapes.title.text = tit
subtitle = slide.placeholders[1].text = cont
prs.save('test.pptx')
os.startfile("test.pptx")
def initCommand():
r = sr.Recognizer()
with sr.Microphone() as source:
print("Listening...")
r.pause_threshold = 1
audio = r.listen(source)
try:
print("Recognizing...")
query = r.recognize_google(audio, language='en-in')
print(f"User said: {query}\n")
except Exception as e:
print(e)
print("Say that again please...")
return "None"
return query
def e_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1OTQ2NDAwMzM5')
def h_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1ODQ4OTM3MDk5')
def m_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1OTM0NzAxNjAx')
def c_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1OTQwNTc5MTEy')
def p_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1ODkyNDcwNDIz')
def b_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1OTM3MDMyODc5')
def s_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1OTM5Mzc2Njc0')
def i_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1OTI1MDc4MDY0')
def a_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTM3Mzg4ODk4Njk5')
def z_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE2MDU1MjE5NjI3')
def t_class():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/c/MTE1OTU3ODgwOTIx')
def default_work():
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://mail.google.com/mail/u/0/#inbox')
webbrowser.get('chrome').open_new_tab('https://classroom.google.com/u/0/h')
def findDay(date):
born = datetime.datetime.strptime(date, '%d %m %Y').weekday()
return (calendar.day_name[born])
def setup_classes():
from datetime import datetime
now = datetime.now()
y = now.strftime("%Y")
m = now.strftime("%m")
d = now.strftime("%d")
date = d +" "+ m +" "+ y
day = findDay(date)
if day == 'Monday':
default_work()
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new('https://classroom.google.com/u/0/c/MTE2MDU1MjE5NjI3')
elif day=='Tuesday' or day=='Friday':
default_work()
h_class()
elif day=='Wednesday':
default_work()
m_class()
elif day=="Thursday":
default_work()
e_class()
if __name__ == "__main__":
wishMe()
while True:
query = takeCommand().lower()
if 'astron' in query:
speak("Yes?")
active = True
while active==True:
query = takeCommand().lower()
if 'wikipedia' in query:
speak('Searching wikipedia...')
query = query.replace("wikipedia", "")
results = wikipedia.summary(query, sentences=2)
speak('According to wikipedia')
print(results)
speak(results)
elif 'open youtube' in query:
speak("Opening youtube.")
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new('youtube.com')
elif 'set up my workspace' in query:
speak("Setting up your workspace.")
default_work()
elif 'set up my classes' in query:
speak("Setting up your classes.")
setup_classes()
elif 'english class' in query:
speak("Opening your english class.")
e_class()
elif 'hindi class' in query:
speak("Opening your hindi class.")
h_class()
elif 'maths class' in query:
speak("Opening your math class.")
m_class()
elif 'chemistry class' in query:
speak("Opening your chemistry class.")
c_class()
elif 'physics class' in query:
speak("Opening your physics class.")
p_class()
elif 'biology class' in query:
speak("Opening your Biology class.")
b_class()
elif 'computer class' in query:
speak("Opening your computer class.")
i_class()
elif 'art class' in query:
speak("Opening your art class.")
a_class()
elif 'social class' in query:
speak("Opening your social class.")
s_class()
elif 'CSK class' in query:
speak("Opening your Communication Skills class.")
z_class()
elif 'Telugu class' in query:
speak("Opening your telugu class.")
t_class()
elif 'search google for' in query:
query = query.replace("search google for", "")
splited= query.split()
length = len(splited)
search_link = "https://www.google.com/search?q="
for x in range(0,length):
search_link = search_link + splited[x] + "+"
search_link = search_link + "&rlz=1C1NHXL_enIN704IN704"
speak("Searching Google.")
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab(search_link)
elif 'search in incognito for' in query:
query = query.replace("search in incognito for", "")
splited= query.split()
length = len(splited)
search_link = "https://www.google.com/search?q="
for x in range(0,length):
search_link = search_link + splited[x] + "+"
search_link = search_link + "&rlz=1C1NHXL_enIN704IN704"
speak("Searching Google Incognito")
chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s --incognito'
webbrowser.get(chrome_path).open_new(search_link)
elif 'search youtube for' in query:
query = query.replace('search youtube for',"")
split = query.split()
length = len(split)
search_link = "https://www.youtube.com/results?search_query="
for x in range(0,length):
search_link = search_link + split[x] + "+"
speak("Searching Youtube...")
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab(search_link)
elif 'open google' in query:
speak("Opening google.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk")
elif 'open task manager' in query:
speak("Opening task manager.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools\Task Manager.lnk")
elif 'close google' in query:
speak("Closing Google.")
os.system('TASKKILL /F /IM chrome.exe')
# elif 'close everything' in query:
# os.system('TASKKILL /F /IM chrome.exe')
# os.system('TASKKILL /F /IM zoom.exe')
# os.system('TASKKILL /F /IM notepad.exe')
# os.system('TASKKILL /F /IM explorer.exe')
# # os.system('TASKKILL /F /IM SnippingTool.exe')
elif 'open file explorer' in query:
speak("Opening file explorer.")
os.startfile(r"explorer.exe")
elif 'open zoom' in query:
speak("Opening zoom.")
os.startfile(r"C:\Users\batabyals\AppData\Roaming\Zoom\bin\zoom.exe")
elif 'open notepad' in query:
speak("Opening Notepad.")
os.startfile(r"C:\windows\system32\notepad.exe")
elif 'sharpen your hearing' in query:
speak("I have successfully sharpened my hearing.")
sr.Recognizer().energy_threshold = 4050
elif 'open meet' in query:
speak("opening google meet.")
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open_new_tab('https://meet.google.com')
elif 'open whatsapp' in query:
speak("Opening whatsapp.")
os.startfile(r"C:\Users\batabyals\AppData\Local\WhatsApp\WhatsApp.exe")
elif 'open starry night' in query:
speak("Opening celestron starry night 8.")
os.startfile(r"C:\Program Files (x86)\Starry Night Celestron 8/starrynight.exe")
elif 'open paint' in query:
speak("Opening Microsoft Paint.")
os.startfile(r"C:\windows\system32\mspaint.exe")
elif 'open snipping tool' in query:
speak("Opening Snipping tool.")
os.startfile(r"C:\windows\system32\SnippingTool.exe")
elif 'open math input panel' in query:
speak("Opening math inpput panel.")
os.startfile(r"C:\Program Files\Common Files\Microsoft Shared\Ink\mip.exe")
elif 'open steps recorder' in query:
speak("Opening steps recorder.")
os.startfile(r"C:\windows\system32\psr.exe")
elif 'open character map' in query:
speak("Opening character map.")
os.startfile(r"C:\windows\system32\charmap.exe")
elif 'open control panel' in query:
speak("Opening control panel.")
os.startfile(r"C:\Users\batabyals\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Control Panel.lnk")
elif 'open windows run' in query:
speak("Opening windows run.")
os.startfile(r"C:\Users\batabyals\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Run.lnk")
elif 'open excel' in query:
speak("Opening microsoft excel 201.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Excel.lnk")
elif 'open word' in query:
speak("Opening Microsoft Word 201.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Word.lnk")
elif 'open powerpoint' in query:
speak("Opening microsoft powerpoint 201.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerPoint.lnk")
elif 'open access' in query:
speak("Opening Microsoft Access 201.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Access.lnk")
elif 'open one note' in query:
speak("Opening microsoft one note 201.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OneNote 2016.lnk")
elif 'open publisher' in query:
speak("opening microsoft publisher 201.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Publisher.lnk")
elif 'open visual studio' in query:
speak("Opening visual studio 201.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019.lnk")
elif 'open vsc' in query:
speak("Opening visual studio cod.")
os.startfile(r"C:\Users\batabyals\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code\Visual Studio Code.lnk")
elif 'open settings' in query:
speak("Opening setting.")
os.startfile(r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Settings.lnk")
elif 'open python' in query:
speak("Opening python 3.9.1.")
os.startfile(r"C:\Users\batabyals\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.9\Python 3.9 (64-bit)")
elif 'open python idle' in query:
speak("Opening python idle 3.9.1.")
os.startfile(r"C:\Users\batabyals\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.9\IDLE (Python 3.9 64-bit)")
elif 'open web server for chrome' in query:
speak("Opening web server for chrome.")
os.startfile(r"C:\Users\batabyals\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps\Web Server for Chrome")
elif 'open my class time table' in query:
speak('Opening your school class time table.')
os.startfile(r"C:\Users\batabyals\Desktop\Abhi's Folders\School\Circulars, Time Tables, Schedules, Logsheets and ID Card\Online Class Timetable.xlsx")
elif 'what is my next class' in query:
what_is_next_class()
elif 'calculation' in query:
calculation()
elif 'thanks' in query:
speak("welcome Shreys")
active = False
elif 'bye' in query:
speak("Bye Shreys?")
exit()
elif 'what is my next zoom class' in query:
what_is_next_fiitjee_class()
elif 'Open powerpoint' in query:
open_ppt()
else:
randomOutput()