mirror of
https://github.com/nicolabs/nicobot.git
synced 2025-09-05 17:15:36 +02:00
~ Doc fixes / enhancement
This commit is contained in:
parent
9eec6a5d70
commit
2deae285b5
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue