- You should have pyglet package to hear the sound.
pip install pyglet
-
Move a wav file named siren.wav to same directory with python file.
-
Run main.py
python main.py
-
Install discord_webhook
-
Pass webhook url in main as:
sectioncheck.courseCrawlerHandler(depts, courseCodes, sections, semester, year, webhookurl="your_url")
-
Set webhookurl in main to your server's bot's url
Optional: You can make your bot ping you if you set your pingmsg to your mention id.(eg. <@140408733719138560> to find this look at this)
sectioncheck.courseCrawlerHandler(depts, courseCodes, sections, semester, year, webhookurl="your_url", webhookmsg="<@140408733719138560>")
fall
TUR-101
MATH-102
EEE-102-1,2,3
Setup config.txt file.
Start main.py and just wait for a siren.
You can use your own script to use the sectioncheck package.
Feel free to contribute and fork.
Do not decrease sleep time.