From 40a190b7433181bc3aad435423cea3d4fa6ff3ad Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Sat, 20 Aug 2022 01:40:59 -0400 Subject: [PATCH] Initial commit --- jrnl_check.py | 17 +++++++++++++++++ requirements.txt | Bin 0 -> 148 bytes 2 files changed, 17 insertions(+) create mode 100644 jrnl_check.py create mode 100644 requirements.txt diff --git a/jrnl_check.py b/jrnl_check.py new file mode 100644 index 0000000..a07ed1d --- /dev/null +++ b/jrnl_check.py @@ -0,0 +1,17 @@ +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() diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..6e27f80b8115455b9c66c81c8e2e2dd29dca5eeb GIT binary patch literal 148 zcmX|(Q3`+{5JcxY=qQC{es-9Uj36y4i7sD_3&}Fe!h1XKW3ggkb`0=L&rzt+F$N_H tp%WsFn5iMvLIZzK%y76-VdMTAbapQCK)