fix: SyntaxError in _send_daily_forecast behoben
This commit is contained in:
parent
822c980c15
commit
5b37b6ef5c
1 changed files with 4 additions and 8 deletions
|
|
@ -832,16 +832,12 @@ async def _send_daily_forecast(context):
|
|||
report = await asyncio.get_event_loop().run_in_executor(None, handle_get_health_forecast)
|
||||
prompt = (
|
||||
"Morgendlicher System-Check. Analysiere diesen Report und gib eine kurze "
|
||||
"Prognose (max 10 Zeilen) ob sich Probleme anbahnen. Nenne nur echte Auffälligkeiten, "
|
||||
"gib klare Handlungsempfehlungen wenn nötig. Wenn alles OK ist, reicht eine kurze Entwarnung.
|
||||
|
||||
"
|
||||
+ report
|
||||
"Prognose ob sich Probleme anbahnen. Nur echte Auffaelligkeiten nennen, "
|
||||
"klare Handlungsempfehlung wenn noetig. Bei allem OK: kurze Entwarnung."
|
||||
"\n\n" + report
|
||||
)
|
||||
analysis = await asyncio.get_event_loop().run_in_executor(None, ask_with_tools, prompt)
|
||||
msg = f"🔭 *Tägliche Systemvorhersage*
|
||||
|
||||
{analysis}"
|
||||
msg = "🔭 *Taegliche Systemvorhersage*\n\n" + analysis
|
||||
await bot.send_message(chat_id=CHAT_ID, text=msg, parse_mode="Markdown")
|
||||
log.info("Taegl. Systemvorhersage gesendet")
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue