From 27b0b9d0707487819111b8a93fcd9651bbd4a496 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sat, 2 Jan 2021 13:20:56 -0500 Subject: [PATCH] Adding some new channels to the great content and tweaking some audible notifications --- config/templates/speech/already_done.yaml | 24 ++++++++++++++ config/templates/speech/interjections.yaml | 36 +++++++++++++++++++++ config/templates/twitter_great_content.yaml | 6 ++-- 3 files changed, 62 insertions(+), 4 deletions(-) create mode 100755 config/templates/speech/already_done.yaml create mode 100755 config/templates/speech/interjections.yaml diff --git a/config/templates/speech/already_done.yaml b/config/templates/speech/already_done.yaml new file mode 100755 index 0000000..2157f96 --- /dev/null +++ b/config/templates/speech/already_done.yaml @@ -0,0 +1,24 @@ +> + {# Interjections #} + {%- macro getReport() -%} + {{ [ + 'Okay. Well, I have already handled that.', + 'Looks like someone already did that, but I will gladly take credit.', + 'I am so fast it is already done.' + ]| random }} + {%- endmacro -%} + + + {# a macro that removes all newline characters, empty spaces, and returns formatted text #} + {%- macro cleanup(data) -%} + {%- for item in data.split("\n") if item | trim != "" -%} + {{ item | trim }} {% endfor -%} + {%- endmacro -%} + + {# a macro to call all macros :) #} + {%- macro mother_of_all_macros() -%} + {{ getReport() }} + {%- endmacro -%} + + {# Call the macro #} + {{- cleanup(mother_of_all_macros()) -}} \ No newline at end of file diff --git a/config/templates/speech/interjections.yaml b/config/templates/speech/interjections.yaml new file mode 100755 index 0000000..a2437d1 --- /dev/null +++ b/config/templates/speech/interjections.yaml @@ -0,0 +1,36 @@ +> + {# Interjections #} + {%- macro getReport() -%} + {{ [ + 'Okay.', + 'If you insist.', + 'I am afraid I can not do that I am kidding,', + 'Leave it to me.', + 'As you wish.', + 'I am on it.', + 'No Problem.', + 'I think I can handle that.', + 'Working on it now.', + ' Oh, you were talking to me. Let me take care of that.' + 'Why not. It is not like I ever sleep.', + 'I am not even supposed to be here today. But whatever.', + 'You did not say the magic word. Oh forget it. I will take care of it.', + 'Funny, I was just about to do that.', + 'There are still terabytes of calculations required before I can. Oh, whatever.' + ] | random }} + {%- endmacro -%} + + + {# a macro that removes all newline characters, empty spaces, and returns formatted text #} + {%- macro cleanup(data) -%} + {%- for item in data.split("\n") if item | trim != "" -%} + {{ item | trim }} {% endfor -%} + {%- endmacro -%} + + {# a macro to call all macros :) #} + {%- macro mother_of_all_macros() -%} + {{ getReport() }} + {%- endmacro -%} + + {# Call the macro #} + {{- cleanup(mother_of_all_macros()) -}} \ No newline at end of file diff --git a/config/templates/twitter_great_content.yaml b/config/templates/twitter_great_content.yaml index feaad55..483fa41 100755 --- a/config/templates/twitter_great_content.yaml +++ b/config/templates/twitter_great_content.yaml @@ -2,11 +2,9 @@ {# Twitter Great Content #} {%- macro getRandomPromo() -%} {{- [ - "Want to get YouTube Certified in Home Assistant? @ccostan has the courses to get you there. Subscribe at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", "Checkout one of my favorite Home Assistant Youtubers @ccostan at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ", - "Don't miss @Dr_Zzs next live stream and besure to follow him on Youtube at https://www.youtube.com/channel/UC7G4tLa4Kt6A9e3hJ-HO8ng ", - "Looking for some great Home Assistant content? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ", - "Need some How-To's to juice up your Home Assistant skills? @juanMTech has something for everyone at https://www.juanmtech.com" + "Looking for some great Home Assistant content? @BeardedTinker has you covered. Subscribe at https://www.youtube.com/c/BeardedTinker ", + "Want some cool Home Assistant project ideas? @EverySmartHome has something for you at https://www.youtube.com/c/EverythingSmartHome" ] | random -}} {%- endmacro -%} {%- macro getTags() -%}