Made Quote funnier
parent
3de814d893
commit
1a0140cdea
|
|
@ -2,6 +2,7 @@ import requests
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
import datetime
|
||||||
|
|
||||||
# Ensure a .env file exists next to this script and load variables from it.
|
# Ensure a .env file exists next to this script and load variables from it.
|
||||||
def ensure_env_file(env_path: str, defaults: dict):
|
def ensure_env_file(env_path: str, defaults: dict):
|
||||||
|
|
@ -132,6 +133,6 @@ def post_to_teams(quote):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Fetch a quote and post it to Teams. Use env vars to override defaults.
|
# Fetch a quote and post it to Teams. Use env vars to override defaults.
|
||||||
quote = get_quote()
|
quote = "Anwesenheitskontrolle: "+datetime.date+" "+get_quote()
|
||||||
post_to_teams(quote)
|
post_to_teams(quote)
|
||||||
print("Quote fetched:", quote)
|
print("Quote fetched:", quote)
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
[Musik] [Beifall] Hey
|
|
||||||
Loading…
Reference in New Issue