Queer European MD passionate about IT
Selaa lähdekoodia

Stupid me! This code should have never been added to repository.
Tokens revoked.

Davte 6 vuotta sitten
vanhempi
commit
51b27e2a0d
2 muutettua tiedostoa jossa 6 lisäystä ja 22 poistoa
  1. 6 1
      davtelepot/__init__.py
  2. 0 21
      davtelepot/custombot.py

+ 6 - 1
davtelepot/__init__.py

@@ -1,8 +1,13 @@
+"""Information about this package.
+
+See custombot.py for information about Bot class.
+"""
+
 __author__ = "Davide Testa"
 __email__ = "davte@libero.it"
 __credits__ = "Marco Origlia"
 __license__ = "GNU General Public License v3.0"
-__version__ = "1.3.4"
+__version__ = "1.3.5"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 0 - 21
davtelepot/custombot.py

@@ -1886,24 +1886,3 @@ class Bot(telepot.aio.Bot, Gettable):
                 logging.error("Keyboard interrupt.")
                 break
             logging.info(user_input)
-
-
-if __name__ == '__main__':
-    log_formatter = logging.Formatter(
-        "%(asctime)s [%(module)-15s %(levelname)-8s]     %(message)s",
-        style='%'
-    )
-    # Get root logger and set level to DEBUG
-    root_logger = logging.getLogger()
-    root_logger.setLevel(logging.DEBUG)
-    # ConsoleHandler (log to terminal)
-    ConsoleHandler = logging.StreamHandler()
-    ConsoleHandler.setFormatter(log_formatter)
-    ConsoleHandler.setLevel(logging.DEBUG)
-    # Add ConsoleHandler to root_logger
-    root_logger.addHandler(ConsoleHandler)
-    # from davtelepot.custombot import Bot
-    # davtebot = Bot.get('335545766:AAEVvbdqy7OCG7ufxBwKVdBscdfddFF2lmk')
-    # davtetest = Bot.get('279769259:AAEri-FF8AZeLz0LAi4BpPVjkQcKeOOTimo')
-    # Bot.run_manual_mode()
-    print('Work in progress')