add test bot token
This commit is contained in:
+5
-2
@@ -10,11 +10,14 @@ logging.basicConfig(
|
|||||||
)
|
)
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.INFO)
|
||||||
|
|
||||||
logging.critical("STAN STARTED!")
|
logging.critical("STAN STARTED.")
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
TOKEN = os.environ.get("LUTZPYBOT", "Token not in ENVIRON")
|
TOKEN = os.environ.get("LUTZPYBOT")
|
||||||
|
if not TOKEN:
|
||||||
|
raise LookupError("LUTZPYBOT (token) has not been found in .env")
|
||||||
|
|
||||||
YOOPAY = os.environ.get("YOOKASSA")
|
YOOPAY = os.environ.get("YOOKASSA")
|
||||||
bot = TeleBot(
|
bot = TeleBot(
|
||||||
TOKEN,
|
TOKEN,
|
||||||
|
|||||||
Reference in New Issue
Block a user