added countdown

This commit is contained in:
Lia Schöneweiß 2023-05-09 10:37:15 +02:00
parent 84fef8d071
commit 793dda3ce6

View File

@ -5,6 +5,7 @@ from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from telegram import Update
import re
import random
import time
from .basehandler import BaseHandler
@ -48,7 +49,18 @@ class TurtleHandler(BaseHandler):
answertxt = ""
if vid!=None:
await update.message.reply_video(video=vid, caption=answertxt)
if re.search(turtle_emoji, msgtxt):
await update.message.reply_text(text=answertxt)
time.sleep(1)
await update.message.reply_text(text="3")
time.sleep(1)
await update.message.reply_text(text="2")
time.sleep(1)
await update.message.reply_text(text="1")
time.sleep(1)
await update.message.reply_video(video=vid, caption="Kaboom!")
else:
await update.message.reply_video(video=vid, caption=answertxt)
else:
await update.message.reply_text(text=answertxt)