desktop_notifications/jrnl_check.py

18 lines
513 B
Python
Raw Normal View History

2022-08-20 05:40:59 +00:00
from notifypy import Notify
from os import path
LOGO = "C:/Users/ahosking/OneDrive/Pictures/logos/apple-logo.gif"
JRNL_FILE = 'C:/Users/ahosking/Nextcloud/journals/work.txt'
notification = Notify()
notification.title = "Alex's Test Notifications"
notification.icon = LOGO
if path.exists(JRNL_FILE):
print("Journal Exists!")
notification.message = "The journal file exists!"
notification.send()
else:
notification.message = "There is no journal, where are you writing?!"
notification.send()