mirror of
https://gitlab.com/octospacc/WinDog.git
synced 2025-06-05 22:09:20 +02:00
More work on Matrix, move commands to new HTML locales, fix Mastodon
This commit is contained in:
14
ModWinDog/Start/Start.py
Normal file
14
ModWinDog/Start/Start.py
Normal file
@ -0,0 +1,14 @@
|
||||
# ==================================== #
|
||||
# WinDog multi-purpose chatbot #
|
||||
# Licensed under AGPLv3 by OctoSpacc #
|
||||
# ==================================== #
|
||||
|
||||
def cStart(context:EventContext, data:InputMessageData) -> None:
|
||||
SendMessage(context, OutputMessageData(
|
||||
text_html=context.endpoint.get_string(
|
||||
"start", data.user.settings.language).format(data.user.name)))
|
||||
|
||||
RegisterModule(name="Start", endpoints=[
|
||||
SafeNamespace(names=["start"], handler=cStart),
|
||||
])
|
||||
|
Reference in New Issue
Block a user