Skip to content

Commit ee5003e

Browse files
authored
Merge pull request m4mallu#102 from rinrinx2/patch-6
Create sample-vps-config.py
2 parents a83d037 + d0af87b commit ee5003e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

sample-vps-config.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import logging
3+
4+
logging.basicConfig(
5+
level=logging.INFO,
6+
format="[%(asctime)s - %(levelname)s] - %(name)s - %(message)s",
7+
datefmt='%d-%b-%y %H:%M:%S',
8+
)
9+
logging.getLogger("pyrogram").setLevel(logging.WARNING)
10+
11+
class Config(object):
12+
13+
TG_BOT_TOKEN = ""
14+
APP_ID =
15+
API_HASH = ""
16+
TG_USER_SESSION = ""
17+
DB_URI = ""
18+
19+
def LOGGER(name: str) -> logging.Logger:
20+
return logging.getLogger(name)

0 commit comments

Comments
 (0)