34 lines
380 B
JavaScript
34 lines
380 B
JavaScript
|
|
module.exports = {
|
||
|
|
|
||
|
|
|
||
|
|
friendlyName: 'Push Notification',
|
||
|
|
|
||
|
|
|
||
|
|
description: 'Notify.',
|
||
|
|
|
||
|
|
|
||
|
|
inputs: {
|
||
|
|
message: {
|
||
|
|
type: 'json'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
exits: {
|
||
|
|
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
fn: async function (inputs, exits) {
|
||
|
|
|
||
|
|
if (inputs.message)
|
||
|
|
console.log(inputs.message);
|
||
|
|
else console.log("No message specified");
|
||
|
|
|
||
|
|
return exits.success({ url: "//hamo.com" });
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
};
|