Skip to content

Commit 0eb097b

Browse files
author
Tikene portatil
committed
1.2 Sonido y deteccion customizables
1 parent 646f7f8 commit 0eb097b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

abau.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@
1919
magenta = Fore.MAGENTA + bright + dim
2020

2121

22-
LOCATION_URL = 'https://www.edu.xunta.es/CONTINXENCIA_NERTA/index.html'
22+
LOCATION_URL = "https://www.edu.xunta.es/CONTINXENCIA_NERTA/index.html"
23+
SOUND_FILE = "bruh.wav"
24+
DETECTION_STR = "deshabilitado temporalmente"
2325
DELAY = 10
2426

2527

2628
def main():
2729
os.system("cls")
30+
os.system("title Bot notas ABAU")
31+
2832
print(magenta + "\n\n* Bot notas ABAU *\n")
2933

3034
while True:
@@ -45,11 +49,11 @@ def main():
4549
now = datetime.now()
4650
current_time = now.strftime("%H:%M:%S")
4751

48-
if "deshabilitado temporalmente" in abau.text:
52+
if DETECTION_STR in abau.text:
4953
print(yellow + "Las notas aún no han sido publicadas" + Fore.RESET + " - " + cyan + current_time)
5054
else:
5155
print(green + "NOTAS PUBLICADAS!!")
52-
playsound("bruh.wav")
56+
playsound(SOUND_FILE)
5357
os.system("msg * Notas ABAU publicadas!")
5458
break
5559

0 commit comments

Comments
 (0)