~ Doc fixes / enhancement

This commit is contained in:
nicobo 2020-05-16 16:33:44 +02:00
parent 9eec6a5d70
commit 2deae285b5
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F
3 changed files with 11 additions and 8 deletions

View file

@ -11,13 +11,10 @@ class Bot:
def onMessage( self, message ):
"""
Called by self.chatter whenever a message hsa arrived :
if the given message contains any of the keywords in any language,
will answer with a translation in a random language
including the flag of the random language.
Called by self.chatter whenever a message has arrived.
message: A plain text message
Returns the crafted translation
Returns nothing
"""
pass

View file

@ -400,7 +400,7 @@ class TransBot(Bot):
including the flag of the random language.
message: A plain text message
Returns the crafted translation
Returns nothing
"""
logging.debug("onMessage(%s)",message)

View file

@ -1,8 +1,14 @@
# Requirements for nicobot.py
##### Requirements for all features #####
# (None yet)
##### Requirements for signalcli #####
python-i18n
###### Requirements for transbot #####
python-i18n
# https://requests.readthedocs.io/en/master/
requests
# https://github.com/cvzi/flag
emoji-country-flag
python-i18n
# https://pyyaml.org/wiki/PyYAMLDocumentation
pyyaml