You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
9 months ago | |
---|---|---|
.env.example | 9 months ago | |
.gitignore | 9 months ago | |
README.md | 9 months ago | |
app.py | 9 months ago | |
requirements.txt | 9 months ago |
README.md
Telegram greeter
A small greeter I did for Telegram, that runs before I wake up and informs me of relevant information for the day
What do you need?
python3
andpip3
- A Telegram APP (talk to @BotFather for that).
- A way to run cronjobs.
- The 'es-ES' locale. You can change your locale on the code
How to use it?
- Create a local copy of the
.env.example
file with your own credentials.
cp .env.example .env
- Install your dependencies.
pip3 install -r requirements.txt
- Run it!
./app.py
- (Optional) Set a cronjob.
crontab -e
...
# Run the script every day at 6AM
0 6 * * * /usr/bin/python3 my/script/location/app.py >> my/script/location/log.txt
License
The files and scripts in this repository are licensed under the MIT License, which is a very permissive license allowing you to use, modify, copy, distribute, sell, give away, etc. the software. In other words, do what you want with it. The only requirement with the MIT License is that the license and copyright notice must be provided with the software.