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 = [