This is a telegram bot that allows the user to have a "live" countdown on the event that they want to have.
- Python
- You have to download
pythonfrom the installation.
- You have to download
- Download this repository
- Install the dependencies using
python -m pip install -r requirements.txt(see Dependencies) - Create a
.envfile with the template here - Start the application by running
python .at the root directory.
The requirements.txt file lists the packages the bot needs:
python-telegram-bot[job-queue]
python-dotenvpython-telegram-bot— the Telegram Bot API library (the[job-queue]extra pulls in APScheduler for scheduling the countdown end message)python-dotenv— loads the.envfile
Install them with:
python -m pip install -r requirements.txtTo add a new dependency, add its name to requirements.txt, then run the install command again.
BOT_TOKEN=<Your Bot Token>- Copy the template above (Note that there is no space between the
=and the token itself) - Get your
BOT_TOKENfrom@botfatherhere
- Note that once you turn off the bot, all the event information is lost. (This might be a feature to be added in the future)
Feel free to send in a pull request. Ensure that all the unit tests are passing before sending in a pull request.
To Use this project, please add this line into your readme.
Referenced from [Jh123x Timer bot](https://jh123x.com/blog/2023/a-live-countdown-telegram-bot/)