summaryrefslogtreecommitdiff
path: root/notificator.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-08 12:32:40 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-08 12:32:40 +0100
commit7cef3972a5f1199a6b709070f9dbfcaf5cd543bf (patch)
tree9e226918ccfa14cf4c22440e5ea5213c6d1d5dc7 /notificator.go
parentbd57a25b7476021c394de56d4965b3aab6684f05 (diff)
[feat] use the right urls
Diffstat (limited to 'notificator.go')
-rw-r--r--notificator.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/notificator.go b/notificator.go
index 31f2202..1e60221 100644
--- a/notificator.go
+++ b/notificator.go
@@ -8,8 +8,9 @@ import (
"github.com/0xAX/notificator"
)
+const notificationText = `The RiseupVPN service is expensive to run. Because we don't want to store personal information about you, there is no accounts or billing for this service. But if you want the service to continue, donate at least $5 each month at https://riseup.net/donate-vpn`
+
func notificate() {
- // TODO: we need a proper icon
wd, _ := os.Getwd()
notify := notificator.New(notificator.Options{
DefaultIcon: path.Join(wd, "riseupvpn.svg"),
@@ -17,7 +18,8 @@ func notificate() {
})
for {
- notify.Push("Donate", "Have you already donated to RiseupVPN?", "", notificator.UR_NORMAL)
time.Sleep(time.Minute * 5)
+ notify.Push("Donate to RiseupVPN", notificationText, "", notificator.UR_NORMAL)
+ time.Sleep(time.Hour * 24)
}
}