You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code should check if there is a module where the command can be redirected to? Not sure if the module name should be the same name as the service, or if a module can define multiple services.
It now searches for global variables which have a command function.
The text was updated successfully, but these errors were encountered:
if (!gladys.modules[service] || typeof gladys.modules[service].command != "function") {
But it might be even nicer if a module can define multiple services. For example a mediaplayer module which supports both audio and video and can receive commands from different services.
See https://github.com/GladysProject/Gladys/blob/master/api/core/brain/brain.classify.js#L40
The code should check if there is a module where the command can be redirected to? Not sure if the module name should be the same name as the service, or if a module can define multiple services.
It now searches for global variables which have a
command
function.The text was updated successfully, but these errors were encountered: