Support anytime compliment group.

This commit is contained in:
Kyle Carson 2017-02-05 19:28:42 -06:00
parent cd37ba308c
commit 79c79146a5

View File

@ -12,6 +12,9 @@ Module.register("compliments",{
// Module config defaults. // Module config defaults.
defaults: { defaults: {
compliments: { compliments: {
anytime: [
"Hey there sexy!"
],
morning: [ morning: [
"Good morning, handsome!", "Good morning, handsome!",
"Enjoy your day!", "Enjoy your day!",
@ -107,6 +110,9 @@ Module.register("compliments",{
if ( this.currentWeatherType in this.config.compliments) { if ( this.currentWeatherType in this.config.compliments) {
compliments.push.apply(compliments, this.config.compliments[this.currentWeatherType]); compliments.push.apply(compliments, this.config.compliments[this.currentWeatherType]);
} }
compliments.push.apply(compliments, this.config.compliments.anytime);
return compliments; return compliments;
}, },