Download telebot/plugins/congratulations.py from thenamk3/cc: direct link, hf CLI and curl.
- Browser
- Download file 954 Bytes
-
https://huggingface.co/spaces/thenamk3/cc/resolve/main/telebot/plugins/congratulations.py
- Command line
-
hf download hf://spaces/thenamk3/cc/telebot/plugins/congratulations.py
-
curl -L -o congratulations.py https://huggingface.co/spaces/thenamk3/cc/resolve/main/telebot/plugins/congratulations.py
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!`", | |
| ] | |
| 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."}) | |