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),
|
||||
])
|
||||
|
16
ModWinDog/Start/Start.yaml
Normal file
16
ModWinDog/Start/Start.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
summary:
|
||||
en: Things related to starting the bot, on supported platforms.
|
||||
endpoints:
|
||||
start:
|
||||
summary:
|
||||
en: Salutes the user, hinting that the bot is working and providing basic quick help.
|
||||
start:
|
||||
en: |
|
||||
<b>Hi</b> {0}<b>!</b>
|
||||
|
||||
Use /help to read a list of available commands.
|
||||
it: |
|
||||
<b>Ciao</b> {0}<b>!</b>
|
||||
|
||||
Usa /help per leggere la lista dei comandi.
|
||||
|
Reference in New Issue
Block a user