Spaces:
Running
Running
Download core/plugins/builtin.py from Alialdlfy1/Teleautoadminbot: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/Alialdlfy1/Teleautoadminbot/resolve/main/core/plugins/builtin.py
- Command line
-
hf download hf://spaces/Alialdlfy1/Teleautoadminbot/core/plugins/builtin.py
-
curl -L -o builtin.py https://huggingface.co/spaces/Alialdlfy1/Teleautoadminbot/resolve/main/core/plugins/builtin.py
543 Bytes
| from __future__ import annotations | |
| from .contracts import SectionSpec | |
| BUILTIN_SECTIONS = ( | |
| SectionSpec("blogger", "publishing", secret_names=( | |
| "BLOGGER_BLOG_ID", "BLOGGER_CLIENT_ID", "BLOGGER_CLIENT_SECRET", "BLOGGER_REFRESH_TOKEN" | |
| )), | |
| SectionSpec("news", "content", capabilities=("ingest", "process", "publish")), | |
| SectionSpec("sports", "content", capabilities=("ingest", "process", "publish")), | |
| ) | |
| def register_builtins(registry): | |
| for spec in BUILTIN_SECTIONS: | |
| registry.register(spec) | |
| return registry | |