mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
18 lines
492 B
JavaScript
Executable File
18 lines
492 B
JavaScript
Executable File
const config = require('../../../conf/config.json');
|
|
|
|
/**
|
|
* simply prints out the found data to the console
|
|
* @param serviceName e.g immoscout
|
|
* @param newListings an array with newly found listings
|
|
*/
|
|
exports.send = (serviceName, newListings) => {
|
|
return [Promise.resolve(console.info(`Found entry from service ${serviceName}:`, newListings))];
|
|
};
|
|
|
|
/**
|
|
* each integration needs to implement this method
|
|
*/
|
|
exports.enabled = () => {
|
|
return config.notification.console.enabled;
|
|
};
|