Skip to content

Instantly share code, notes, and snippets.

@fabsenet
Created July 17, 2020 16:03
Show Gist options
  • Save fabsenet/967cbad1a3b4610eac5cd4ccb6d47dba to your computer and use it in GitHub Desktop.
Save fabsenet/967cbad1a3b4610eac5cd4ccb6d47dba to your computer and use it in GitHub Desktop.
// function node auf 2 Ausgänge konfigurieren!
const hour = new Date().getHours();
if(hour >= 22 || hour <= 6){
//nachts
return [msg, null];
}
else{
//tags
return [null, msg];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment