mirror of
https://github.com/nicolabs/nicobot.git
synced 2025-09-06 17:01:50 +02:00
~ Doc fixes / enhancement
This commit is contained in:
parent
9eec6a5d70
commit
2deae285b5
|
@ -11,13 +11,10 @@ class Bot:
|
||||||
|
|
||||||
def onMessage( self, message ):
|
def onMessage( self, message ):
|
||||||
"""
|
"""
|
||||||
Called by self.chatter whenever a message hsa arrived :
|
Called by self.chatter whenever a message has 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.
|
|
||||||
|
|
||||||
message: A plain text message
|
message: A plain text message
|
||||||
Returns the crafted translation
|
Returns nothing
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -400,7 +400,7 @@ class TransBot(Bot):
|
||||||
including the flag of the random language.
|
including the flag of the random language.
|
||||||
|
|
||||||
message: A plain text message
|
message: A plain text message
|
||||||
Returns the crafted translation
|
Returns nothing
|
||||||
"""
|
"""
|
||||||
logging.debug("onMessage(%s)",message)
|
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/
|
# https://requests.readthedocs.io/en/master/
|
||||||
requests
|
requests
|
||||||
# https://github.com/cvzi/flag
|
# https://github.com/cvzi/flag
|
||||||
emoji-country-flag
|
emoji-country-flag
|
||||||
python-i18n
|
|
||||||
# https://pyyaml.org/wiki/PyYAMLDocumentation
|
# https://pyyaml.org/wiki/PyYAMLDocumentation
|
||||||
pyyaml
|
pyyaml
|
||||||
|
|
Loading…
Reference in a new issue