Move all new strings to YAML, basic working Matrix backend with text messages

This commit is contained in:
2024-06-29 01:52:53 +02:00
parent 4afb5f3275
commit 6d2f51f02c
23 changed files with 153 additions and 81 deletions

View File

@ -136,14 +136,14 @@ def cSafebooru(context:EventContext, data:InputMessageData) -> None:
except Exception as error:
raise
RegisterModule(name="Internet", summary="Tools and toys related to the Internet.", endpoints=[
SafeNamespace(names=["embedded"], summary="Rewrites a link, trying to bypass embed view protection.", handler=cEmbedded),
SafeNamespace(names=["web"], summary="Provides results of a DuckDuckGo search.", handler=cWeb),
SafeNamespace(names=["translate"], summary="Returns the received message after translating it in another language.", handler=cTranslate, arguments={
RegisterModule(name="Internet", endpoints=[
SafeNamespace(names=["embedded"], handler=cEmbedded),
SafeNamespace(names=["web"], handler=cWeb),
SafeNamespace(names=["translate"], handler=cTranslate, arguments={
"language_to": True,
"language_from": False,
}),
#SafeNamespace(names=["unsplash"], summary="Sends a picture sourced from Unsplash.", handler=cUnsplash),
SafeNamespace(names=["safebooru"], summary="Sends a picture sourced from Safebooru.", handler=cSafebooru),
SafeNamespace(names=["safebooru"], handler=cSafebooru),
])