-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
35 lines (32 loc) · 887 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from src.complements_bot import ComplementsBot
# import logging.config
#
# logging_config = {
# 'version': 1,
# 'formatters': {
# 'detailed': {
# 'format': '%(asctime)s [%(levelname)s] %(message)s',
# },
# },
# 'handlers': {
# 'file': {
# 'class': 'logging.handlers.RotatingFileHandler',
# 'filename': '/complements-bot-py/app.log',
# 'maxBytes': 50e6,
# 'backupCount': 3,
# 'formatter': 'detailed',
# },
# 'console': {
# 'class': 'logging.StreamHandler',
# 'formatter': 'detailed',
# },
# },
# 'root': {
# 'handlers': ['file', 'console'],
# 'level': 'INFO',
# },
# }
# logging.config.dictConfig(logging_config)
if __name__ == "__main__":
bot: ComplementsBot = ComplementsBot()
bot.run()