18 lines
513 B
Python
18 lines
513 B
Python
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()
|