-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.py
More file actions
32 lines (27 loc) · 674 Bytes
/
app.py
File metadata and controls
32 lines (27 loc) · 674 Bytes
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
"""Application's main file."""
import logging
import config
print("=" * 25)
print("Loading modules...")
print("=" * 25)
print("Loading configurations...")
print("=" * 25)
print(f"Path: {config.BASE_DIR}")
print(f"Database: {config.DB_URI}")
print(f"Bot Token: {config.TOKEN}")
print("=" * 25)
from bot import updater
print("Updater Initialized")
print("=" * 25)
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)
print("Starting polling...")
updater.start_polling()
print("Polling stared")
print("=" * 25)
updater.idle()
print("=" * 25)
print("Stopping the updater...")
updater.stop()
print("=" * 25)