přidal jsem žlinceraldy

This commit is contained in:
2026-03-15 19:17:27 +01:00
parent c9dc7e1d4c
commit 4332602887
17 changed files with 18 additions and 0 deletions

18
main.py
View File

@@ -12,6 +12,24 @@ print(API_KEY) # testžím
CHANCE = 1.0
IMAGE_FOLDER = "obruzky"
VIDEO_EXT = (".mp4", ".mov", ".avi", ".mkv", ".webm")
@bot.message_handler(commands=['zlincerald'])
def send_random_image(message):
files = os.listdir(IMAGE_FOLDER)
chosen = random.choice(files)
path = os.path.join(IMAGE_FOLDER, chosen)
with open(path, "rb") as media:
if chosen.lower().endswith(VIDEO_EXT):
bot.send_video(message.chat.id, media)
else:
bot.send_photo(message.chat.id, media)
PHRASES_ALL = [
"Tak uědlej JINEEJ SKUPINA VOLE TY NUDLE ČÍNSKÁ POSRANA",
"TY KURVO POSRANA ČDJ CIGAN Z USTÍ POSEDLÝ KRETEN ZE SLOVENSKO ESL",