2020-05-12 07:46:27 +02:00
|
|
|
en:
|
2020-05-13 07:33:13 +02:00
|
|
|
# If present, this is a template to use for all messages
|
|
|
|
all_messages: 🤖 %{message}
|
2020-05-13 23:53:12 +02:00
|
|
|
|
2021-03-18 13:03:50 +01:00
|
|
|
# Sent when the bot cannot translate a given message
|
|
|
|
IDontKnow: I don't know
|
|
|
|
|
|
|
|
# Set the following banners explicitely to the empty string "" to disable them
|
|
|
|
Hello: nicobot ready 🤟
|
|
|
|
Goodbye: See you later 👋
|
|
|
|
|
|
|
|
#####################
|
|
|
|
# COMMANDS
|
|
|
|
#
|
|
|
|
# The following patterns are used to detect commands in the received messages
|
|
|
|
#####################
|
|
|
|
|
2020-05-13 23:53:12 +02:00
|
|
|
# If a message matches this pattern, bot will try to translate <message> into the configured locale
|
|
|
|
# See https://docs.python.org/3/howto/regex.html#regex-howto for details on the format
|
2021-03-18 13:03:50 +01:00
|
|
|
# Matching is made with case ignored
|
|
|
|
# TODO rename to pattern_translate_default_locale or command_... to make it clear it's not a text to localize
|
|
|
|
translate_default_locale: '@?nicobot\s+(?P<message>.+)$'
|
2020-05-13 23:53:12 +02:00
|
|
|
|
|
|
|
# If a message matches this pattern, bot will try to translate <message> into <language>
|
|
|
|
# See https://docs.python.org/3/howto/regex.html#regex-howto for details on the format
|
2021-03-18 13:03:50 +01:00
|
|
|
# Matching is made with case ignored
|
|
|
|
# TODO rename to pattern_translate or command_... to make it clear it's not a text to localize
|
|
|
|
translate: '@?nicobot\s+(?P<message>.+)\s+in\s+(?P<language>.+)$'
|
2020-05-13 23:53:12 +02:00
|
|
|
|
|
|
|
# Key sentence that shuts the bot down
|
2021-03-18 13:03:50 +01:00
|
|
|
# Matching is made with case ignored
|
|
|
|
# TODO rename to pattern_Shutdown or command_shutdown to make it clear it's not a text to localize
|
|
|
|
Shutdown: bye @?nicobot
|