summaryrefslogtreecommitdiff
path: root/notificator.go
blob: f67946827b7535528e9528222d3d7c8120e2d5ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
	}
}