From 581d3c90bb1b0409b0105b17c8b3f6c304000be1 Mon Sep 17 00:00:00 2001 From: cordman Date: Sat, 14 Mar 2026 21:05:53 +0100 Subject: [PATCH] =?UTF-8?q?oprav=C5=BEen=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- .gitignore | 1 + main.py | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.env b/.env index 8e5e508..61402da 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -API_KEY = 8438017196:AAFNokgHwhn4G-0HuCxc7ZVwf7SJP1ETXpc \ No newline at end of file +API_KEY=8438017196:AAFNokgHwhn4G-0HuCxc7ZVwf7SJP1ETXpc \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/main.py b/main.py index 53933f3..518c576 100644 --- a/main.py +++ b/main.py @@ -1,10 +1,15 @@ import os import telebot import random +from dotenv import load_dotenv -API_KEY = "8438017196:AAFNokgHwhn4G-0HuCxc7ZVwf7SJP1ETXpc" +load_dotenv() + +API_KEY = os.getenv("API_KEY") bot = telebot.TeleBot(API_KEY) +print(API_KEY) # testžím + CHANCE = 1.0 PHRASES_ALL = [