25 lines
710 B
Python
25 lines
710 B
Python
"""WordPress Statistik Tool."""
|
|
|
|
from core import config, wordpress_client
|
|
|
|
TOOLS = [
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_wordpress_stats",
|
|
"description": "WordPress INTERNE Statistiken: Anzahl veroeffentlichter Posts/Artikel, offene Kommentare, Plugin-Status. NICHT fuer Besucherzahlen — dafuer get_matomo_analytics nutzen.",
|
|
"parameters": {"type": "object", "properties": {}, "required": []},
|
|
},
|
|
},
|
|
]
|
|
|
|
|
|
def handle_get_wordpress_stats(**kw):
|
|
cfg = config.parse_config()
|
|
wordpress_client.init(cfg)
|
|
return wordpress_client.format_overview(cfg)
|
|
|
|
|
|
HANDLERS = {
|
|
"get_wordpress_stats": handle_get_wordpress_stats,
|
|
}
|