From 2deae285b566c24e3d6b832c373c8e67ef7aa966 Mon Sep 17 00:00:00 2001 From: nicobo Date: Sat, 16 May 2020 16:33:44 +0200 Subject: [PATCH] ~ Doc fixes / enhancement --- nicobot/bot.py | 7 ++----- nicobot/transbot.py | 2 +- requirements.txt | 10 ++++++++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/nicobot/bot.py b/nicobot/bot.py index 91ab627..caaaf7c 100644 --- a/nicobot/bot.py +++ b/nicobot/bot.py @@ -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 diff --git a/nicobot/transbot.py b/nicobot/transbot.py index 70a8957..8566b2f 100755 --- a/nicobot/transbot.py +++ b/nicobot/transbot.py @@ -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) diff --git a/requirements.txt b/requirements.txt index 58368ff..ddd405d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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