Working with Charly
This commit is contained in:
1 parent
e3e24d2dd5
commit
3c3aa19caa
4 files changed
+102
-52
No files matched your search
@@ -122,6 +122,16 @@
|
||||
|
||||
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> Entering function."); }
|
||||
|
||||
/* Loop Heartbeat sent to the UI */
|
||||
//hearBeat()
|
||||
function hearBeat() {
|
||||
let key = global.USER_DEFINITION.name + '-' + global.USER_DEFINITION.type
|
||||
let event = {
|
||||
seconds: (new Date()).getSeconds()
|
||||
}
|
||||
global.SYSTEM_EVENT_HANDLER.raiseEvent(key, 'Heartbeat', event)
|
||||
}
|
||||
|
||||
/* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */
|
||||
|
||||
const UTILITIES = require(ROOT_DIR + 'CloudUtilities');
|
||||
|
||||
Reference in new issue
Block a user