Updated examples

This commit is contained in:
Davte committed 2020-08-23 14:21:45 +02:00
1 parent b797f3fffe
commit 48b7e1e4a2
3 files changed
+35 -31

No files matched your search

+5 -5
View File
@@ -28,7 +28,7 @@ except ImportError:
from a_simple_bot import initialize_bot
# Get path of current script
os.path.dirname(os.path.abspath(__file__))
path = os.path.dirname(os.path.abspath(__file__))
def _main():
@@ -96,10 +96,10 @@ def _main():
)
root_logger = logging.getLogger()
root_logger.setLevel(logging.DEBUG)
consoleHandler = logging.StreamHandler()
consoleHandler.setFormatter(log_formatter)
consoleHandler.setLevel(logging.DEBUG)
root_logger.addHandler(consoleHandler)
console_handler = logging.StreamHandler()
console_handler.setFormatter(log_formatter)
console_handler.setLevel(logging.DEBUG)
root_logger.addHandler(console_handler)
# Instantiate, initialize and make bots run.
webhook_bot = Bot(