mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-01 13:33:15 +00:00
Support anytime
compliment group.
This commit is contained in:
parent
cd37ba308c
commit
79c79146a5
@ -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;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user