From 5f00ba269edb59a745e20529d929c32c9a14cf97 Mon Sep 17 00:00:00 2001 From: Davte Date: Mon, 17 Feb 2020 14:20:22 +0100 Subject: [PATCH] Use davtelepot suggestions module --- ciclopibot/__init__.py | 2 +- ciclopibot/bot.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ciclopibot/__init__.py b/ciclopibot/__init__.py index 1e5b4e9..8b19983 100644 --- a/ciclopibot/__init__.py +++ b/ciclopibot/__init__.py @@ -3,7 +3,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __license__ = "GNU General Public License v3.0" -__version__ = "1.1.5" +__version__ = "1.1.6" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/ciclopibot/bot.py b/ciclopibot/bot.py index e1e9ff2..5d030ae 100644 --- a/ciclopibot/bot.py +++ b/ciclopibot/bot.py @@ -7,7 +7,6 @@ import sys # Third party modules import davtelepot -from davtelepot import administration_tools, authorization, languages # Project modules from . import ciclopi @@ -85,16 +84,17 @@ if __name__ == '__main__': ), ['telegram_id'] ) - administration_tools.init(bot) + davtelepot.administration_tools.init(bot) ciclopi.init(bot) helper.init( bot=bot, ) - authorization.init(bot) - languages.init( + davtelepot.authorization.init(bot) + davtelepot.languages.init( bot, language_messages=language_messages, supported_languages=supported_languages ) + davtelepot.suggestions.init(bot) # Run bot(s) logging.info("Press ctrl+C to exit.") exit_state = davtelepot.bot.Bot.run(