Skip to content
Snippets Groups Projects
Commit 556218bf authored by Frederic Aust's avatar Frederic Aust
Browse files

Dumme Fehler gefixt

parent dad3d577
Branches main
No related tags found
No related merge requests found
......@@ -432,9 +432,9 @@ def get_deepl_translation(msgDict):
def add_song_to_playlist(msgDict):
spotify_config = CONFIG.get("Spotify", {})
if (
ModuleSpotify is None
or spotify_config.get("spotify_client_id", None) is None
or spotify_config.get("spotify_client_secret", None) is None
spotify is None
or spotify_config.get("client_id", None) is None
or spotify_config.get("client_secret", None) is None
or spotify_config.get("redirect_uri", None) is None
): # TODO bereits in der INit berücksichtigen, wenn die Secrets nicht am start sind
send("There is no Spotify!", msgDict["receiver"])
......@@ -492,7 +492,7 @@ def send_heartbeat():
def init_schedule_jobs():
schedule.every().day.at("19:00").do(run_threaded, send_heartbeat)
schedule.every().monday.at("06:00").do(run_threaded, gn.update_db)
schedule.every().hour.do(run_threaded, games.auto_newsletter)
# schedule.every().hour.do(run_threaded, games.auto_newsletter)
schedule.every().day.at("00:01").do(
run_threaded, birthday_reminder.check_for_birthdays
)
......@@ -580,7 +580,7 @@ if __name__ == "__main__":
# global GROUPS
GROUPS = CONFIG.get("GROUPS", {})
spotify_config = CONFIG.get("Spotify", {})
FUN_DICT = CONFIG.get("FUN_DICT", {})
gn = ModuleGenderneutral("gn.json", log)
quotes = ModuleQuotes(GROUPS, log)
games = ModuleFreeGames(CONFIG.get("FREE_GAMES_SUBSCRIBER", {}), send_a, log)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment