blob: 31f2202087be012dd64ff2777225f77e3a8e9d53 (
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, "riseupvpn.svg"),
AppName: "RiseupVPN",
})
for {
notify.Push("Donate", "Have you already donated to RiseupVPN?", "", notificator.UR_NORMAL)
time.Sleep(time.Minute * 5)
}
}
|