Sends you the 3 daily tshirts from qwertee.com, they are scheduled with cron to be executed at 23:10 every day.
This repo contains files to deploy the bot both on docker (and exporting it to any cloud provider) and on gcloud with appengine&cronjobs.
To deploy on gcloud first create a credentials.yaml file on the gcloud-app folder with the bot TOKEN:
env_variables:
TELEGRAM_TOKEN: <TOKEN>
Then run the following commands
#inside the gcloud app folder
$ gcloud app deploy
$ gcloud app deploy cron.yaml
Easy as that!
To deploy on gcloud with cloud functions use the code under cloud_function
and follow the tutorial from google. https://cloud.google.com/scheduler/docs/tut-pub-sub
In order to use the Docker setup, use the following commands:
#inside the project folder
$ docker build -t qwerteebot .
$ docker run -v <ABSOLUTE_PATH_TO_BOT_TOKEN>:/bot/token.txt qwerteebot
May change the Dockerfile to a light base image (probably alpine) in the future.
With the current github action under .github/workflows
you can have the script run at an schedule time. This is the current deployment.
- To write the list of TODOs
- 0.0.3
- Github actions support
- 0.0.2
- Cloud functions support
- 0.0.1
- First release
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/jiwidi/DailyQwertee
https://github.com/zhonskate
- Fork it (https://github.com/jiwidi/DailyQwertee/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request