Queer European MD passionate about IT
Ver Fonte

Use davtelepot helper module

Davte há 4 anos atrás
pai
commit
3d28e59d46
2 ficheiros alterados com 3 adições e 6 exclusões
  1. 1 1
      ciclopibot/__init__.py
  2. 2 5
      ciclopibot/bot.py

+ 1 - 1
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"
 

+ 2 - 5
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(