cc / telebot /plugins /congratulations.py
thenamk3's picture
Upload 241 files
44aada1 verified
Raw History Blame Contribute Delete
954 Bytes
import random
from telebot import CMD_HELP
RUNSREACTS = [
"`Congratulations and BRAVO!`",
"`You did it! So proud of you!`",
"`This calls for celebrating! Congratulations!`",
"`I knew it was only a matter of time. Well done!`",
"`Congratulations on your well-deserved success.`",
"`Heartfelt congratulations to you.`",
"`Warmest congratulations on your achievement.`",
"`Congratulations and best wishes for your next adventure!”`",
"`So pleased to see you accomplishing great things.`",
"`Feeling so much joy for you today. What an impressive achievement!`",
]
@telebot.on(admin_cmd(pattern="congo"))
@telebot.on(sudo_cmd(pattern="congo", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
bro = random.randint(0, len(RUNSREACTS) - 1)
reply_text = RUNSREACTS[bro]
await eor(event, reply_text)
CMD_HELP.update({"congratulations": ".congo\nUse - Congratulate a person."})