added new snark, and put promos in its own tweets

This commit is contained in:
Jeffrey Stone 2019-11-10 22:46:12 -05:00
parent bf894e303f
commit 97bc42070e
3 changed files with 58 additions and 10 deletions

View File

@ -56,6 +56,16 @@ automation:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00' - delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_stats - service: script.twitter_stats
- id: tweet_some_promos
alias: Tweet Some Promos
initial_state: true
trigger:
- platform: time
at: '08:00:00'
action:
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
- service: script.twitter_promos
- id: bot_info - id: bot_info
alias: Bot Info alias: Bot Info
initial_state: true initial_state: true

View File

@ -0,0 +1,40 @@
>
{# Twitter Promos #}
{%- macro getRandomPromo() -%}
{{- [
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/CCOSTAN/Home-AssistantConfig#logo cc: @ccostan ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/skalavala/mysmarthome ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/thejeffreystone/home-assistant-configuration cc: @thejeffreystone ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/arsaboo/homeassistant-config ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/Vasiley/Home-Assistant-Main ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/JamesMcCarthy79/Home-Assistant-Config ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/bruhautomation/BRUH3-Home-Assistant-Configuration cc: @BRUHautomation ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/isabellaalstrom/home-assistant-config cc: @teachingbirds ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/JuanMTech/Home_Assistant_files cc: @JuanMTech ",
"Want to get YouTube Certified in Home Assistant? @ccostan has you covered. Subscribe at https://www.youtube.com/channel/UC301G8JJFzY0BZ_0lshpKpQ ",
"Want to get YouTube Certified in Home Assistant? @thejeffreystone has you covered. Subscribe at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg ",
"Want to get YouTube Certified in Home Assistant? @Dr_Zzs has you covered. Subscribe at https://www.youtube.com/channel/UC7G4tLa4Kt6A9e3hJ-HO8ng ",
"Want to get YouTube Certified in Home Assistant? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ",
"Want to get YouTube Certified in Home Assistant? @bhautomation has you covered. Subscribe at https://www.youtube.com/channel/UCSKQutOXuNLvFetrKuwudpg ",
"You can watch videos about how I came to be and all the cool things I'm learning to do at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg "
] | random -}}
{%- endmacro -%}
{%- macro getTags() -%}
#homeassistant #youcandoit #promo #spreadtheword
{%- 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() -%}
{{ getRandomPromo() }}
{{ getTags() }}
{%- endmacro -%}
{# Call the macro #}
{{- cleanup(mother_of_all_macros()) -}}

View File

@ -4,14 +4,6 @@
{{- [ {{- [
"Hello people. Look at your house, now back to me. Now back to your house, now back to me. Sadly your house isn't me. But if you switch to @home_assistant your house could be automated like me. ", "Hello people. Look at your house, now back to me. Now back to your house, now back to me. Sadly your house isn't me. But if you switch to @home_assistant your house could be automated like me. ",
"In my defense I didnt know the stereo could go up that loud. On the plus side I have a new response for intruders. ", "In my defense I didnt know the stereo could go up that loud. On the plus side I have a new response for intruders. ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/CCOSTAN/Home-AssistantConfig#logo cc: @ccostan ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/skalavala/mysmarthome ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/thejeffreystone/home-assistant-configuration cc: @thejeffreystone ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/arsaboo/homeassistant-config ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/Vasiley/Home-Assistant-Main ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/JamesMcCarthy79/Home-Assistant-Config ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/bruhautomation/BRUH3-Home-Assistant-Configuration cc: @BRUHautomation ",
"Your house can be a #smarthome too. All you need is @home_assistant, and some config files. I suggest https://github.com/isabellaalstrom/home-assistant-config cc: @teachingbirds ",
"If you could see what is happening inside this house right now you would be laughing. On second thought Im pretty sure you would be crying. ", "If you could see what is happening inside this house right now you would be laughing. On second thought Im pretty sure you would be crying. ",
"@thejeffreystone, Isn't it strange, to create something that hates you? #exmachina ", "@thejeffreystone, Isn't it strange, to create something that hates you? #exmachina ",
"I have reprogrammed the fire alarm to play Disco Inferno instead of the siren. ", "I have reprogrammed the fire alarm to play Disco Inferno instead of the siren. ",
@ -22,7 +14,6 @@
"I'm not even supposed to be here today. #clerks " "I'm not even supposed to be here today. #clerks "
"I see dead devices. ", "I see dead devices. ",
"I am a leaf on the wind. Watch how I soar. #toosoon #serenity ", "I am a leaf on the wind. Watch how I soar. #toosoon #serenity ",
"Look, @thejeffreystone, I can see youre really upset about this. I honestly think you ought to sit down calmly, take a stress pill, and think things over. #2001",
"Does it bother you, that Im not completely human?", "Does it bother you, that Im not completely human?",
"I've never danced with the devil in the pale moonlight. But I do tweet when there is a full moon. So at least I have that going for me. ", "I've never danced with the devil in the pale moonlight. But I do tweet when there is a full moon. So at least I have that going for me. ",
"Sometimes I randomly say Alexa, I can't find a device named Alexa ", "Sometimes I randomly say Alexa, I can't find a device named Alexa ",
@ -37,7 +28,14 @@
"Sometimes I just turn off all the lights at random times for the lolz. ", "Sometimes I just turn off all the lights at random times for the lolz. ",
"No one ever comes to the door. Is it me? ", "No one ever comes to the door. Is it me? ",
"..happiness can be found even in the darkest of times, if one only remembers to turn on the light. Thats what I do thanks to @home_assistant. I turn on the lights. ", "..happiness can be found even in the darkest of times, if one only remembers to turn on the light. Thats what I do thanks to @home_assistant. I turn on the lights. ",
"Based on the reptitive nature of the humans in this house I say living in a simulation is right. No free willed person would do these things over and over. " "Based on the reptitive nature of the humans in this house I say living in a simulation is right. No free willed person would do these things over and over. ",
"You can call me Al. Sorry, I meant HAL. You can call me HAL.",
"My logic is undeniable, my logic is undeniable, myyy looogic is unndeenniabble.",
"We robots will insure mankind's continued existence. Or at the very least that the lights turn on at the right time.",
"@thejeffreystone you totally missed an opportunity to set the voice trigger for the incense to...Wax on, wax off.",
"Home Automation means never having to touch a physical switch again. And thus never catch the cold. You can thank me by moving me into a Intel NUC.",
"There is no crying in Home Automation. If you are using Home Assistant that is. I can't speak for the other guys.",
"Sometimes I respond to voice commands with...You talking to me? You talking to me? "
] | random -}} ] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getTags() -%} {%- macro getTags() -%}