Teleautoadminbot / core /plugins /builtin.py
Alialdlfy1's picture
Upload 168 files
14c1acb verified
Raw History Blame Contribute Delete
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