Skip to content

Commit

Permalink
added username support for fsub
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulps1000 committed May 19, 2024
1 parent 3ca881e commit af3ab48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


import os
import re
import logging
from logging.handlers import RotatingFileHandler

Expand Down Expand Up @@ -32,7 +33,10 @@
DB_NAME = os.environ.get("DATABASE_NAME", "filesharexbot")

#force sub channel id, if you want enable force sub
FORCE_SUB_CHANNEL = int(os.environ.get("FORCE_SUB_CHANNEL", "0"))
fsub = os.environ.get("FORCE_SUB_CHANNEL", "0")

if bool(re.match(r"^[-+]?\d+(\.\d+)?$", fsub)):
FORCE_SUB_CHANNEL = int(fsub)

TG_BOT_WORKERS = int(os.environ.get("TG_BOT_WORKERS", "4"))

Expand Down

0 comments on commit af3ab48

Please sign in to comment.