Hello everybody, i have a problem with "Time Channel Manager"
i set the timezone at UTC+01:00 and the !time command not working Correct.
The error:
error on setTimeout/setInterval callback: Uncaught exception: ReferenceError: time is not defined at support-pp:4586:22 var timeNow = time(); ^ Stack trace: ReferenceError: time is not defined at support-pp:4586:23
And the line in the code (4586:23):
if (config.spTimeChannelManagerActiv) {
setInterval(function () {
var timeNow = time();
config.spTimeChannelManager.forEach(function (timeManager) {
if (timeNow == timeManager.spTime) {
if (timeManager.spTimeAction == 0) {
openSupportChannel(timeManager.spTimePrefix);
engine.log(
"Support channel " +
timeManager.spTimePrefix +
" are open by time."
);
} else {
closeSupportChannel(timeManager.spTimePrefix);
engine.log(
"Support channel " +
timeManager.spTimePrefix +
" are close by time."
);
}
}
});
}, 50000);
}
Pls help! Can also speak German!