-
Notifications
You must be signed in to change notification settings - Fork 0
/
notifier.js
48 lines (42 loc) · 1.07 KB
/
notifier.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<<<<<<< HEAD
const notifier = require("node-notifier");
const path = require("path");
const open = require("open");
const config = require("./config/config.json");
notifier.on("click", function(notifierObject, options, event) {
open(config.cmsURL);
});
module.exports = {
run(message) {
notifier.notify({
title: "Attendance Reminder",
message: message,
icon: path.join(__dirname, config.notificationIcon),
sound: true,
wait: true
});
}
};
//module.exports = run;
=======
const notifier = require('node-notifier')
const path = require('path')
const open = require('open')
module.exports = {
run(message){
notifier.notify(
{
title: 'Attendance Reminder',
message: message,
icon: path.join(__dirname, 'fofx.png'),
sound: true,
wait: true,
},
function() {
open("https://fofxacademy.com")
}
);
}
}
//module.exports = run;
>>>>>>> 75599287c50c1c8610ac28248c303658f19deca3