diff options
Diffstat (limited to 'notificator.go')
-rw-r--r-- | notificator.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/notificator.go b/notificator.go new file mode 100644 index 0000000..f679468 --- /dev/null +++ b/notificator.go @@ -0,0 +1,23 @@ +package main + +import ( + "os" + "path" + "time" + + "github.com/0xAX/notificator" +) + +func notificate() { + // TODO: we need a proper icon + wd, _ := os.Getwd() + notify := notificator.New(notificator.Options{ + DefaultIcon: path.Join(wd, "mask.svg"), + AppName: "RiseupVPN", + }) + + for { + notify.Push("Donate", "Have you already donated to RiseupVPN?", "", notificator.UR_NORMAL) + time.Sleep(time.Minute * 5) + } +} |