From 3d28e59d467433b8e5e78b59bc1efabc8887e105 Mon Sep 17 00:00:00 2001 From: Davte Date: Tue, 18 Feb 2020 10:14:01 +0100 Subject: [PATCH] Use davtelepot helper module --- ciclopibot/__init__.py | 2 +- ciclopibot/bot.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ciclopibot/__init__.py b/ciclopibot/__init__.py index 8b19983..e0a29f2 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.6" +__version__ = "1.1.7" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/ciclopibot/bot.py b/ciclopibot/bot.py index 5d030ae..9b7d989 100644 --- a/ciclopibot/bot.py +++ b/ciclopibot/bot.py @@ -10,10 +10,9 @@ import davtelepot # Project modules from . import ciclopi -from . import helper from .data.passwords import bot_token from .messages import ( - language_messages, supported_languages + default_help_messages, language_messages, supported_languages ) if __name__ == '__main__': @@ -86,15 +85,13 @@ if __name__ == '__main__': ) davtelepot.administration_tools.init(bot) ciclopi.init(bot) - helper.init( - bot=bot, - ) davtelepot.authorization.init(bot) davtelepot.languages.init( bot, language_messages=language_messages, supported_languages=supported_languages ) davtelepot.suggestions.init(bot) + davtelepot.helper.init(bot, help_messages=default_help_messages) # Run bot(s) logging.info("Press ctrl+C to exit.") exit_state = davtelepot.bot.Bot.run(