Skip to content

An automated bot and an alarm solely for Shaswot's "education" purpose

License

Notifications You must be signed in to change notification settings

SaswotLamichhane/Privion

Repository files navigation

Privion

A project I wish to maintain, Works only on unix based system.

Required packages

  • Unix play (sox)
  • notify-send (libnotify-bin>=0.7.5)
  • Python 8.0+

Tested on Pop! os 21.04, MacOS Big sur, Fedora 34 (Should work on versions closer to it).

Main file

The main file which should be run is alarm.py

Mechanics

It works by running the main code evey second. While it runs, It receives the current time of the user, It then checks through the list of alarms marked by G and B through for loop. If the current time matches one of the times in the G or B list, It triggers the alarm. Once the alarm is triggered a notificaition is sent and music is played.

Other simple functionalities can be easily understood by checking the code. The code is compressed to decrease memory usage. But earlier versions of it contains the un-compressed code which is more read-able.

The image of avatar if needed:

avatar

About

An automated bot and an alarm solely for Shaswot's "education" purpose

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages