This unpronounceable project is a simple and gentle reminder bot for @ClockworkAdriem to work on his TFG—Spanish acronym for End-of-Degree Project.
- On a daily basis, the bot awaits for commits until a random hour between 12:00 and 18:00.
- If no commits are pushed to the repository, a reckless
no
message will be tweeted. - In the expremely unexpected event of finding a new commit, we will be rewarded with an encouraging
progress
tweet! - If there was a commit this day and no
no
message has been tweeted yet, nono
message will be tweeted until reset.
The bot resets every day, obviously.
Follow these steps to setup the push webhook:
- Go to
Settings
>Webhooks
. - Click on
Add webhook
. - Set
Payload URL
(ask me). - Set
Content type
toapplication/json
. - Set
Secret
(ask me too). - Let
Just the push event.
option enabled. - Make sure
Active
is checked. - Finally, hit
Add webhook
and we are GTG.
There is a twitter bot (@DAFHTFGY) that feeds from this application.
The following environment variables are used within the application:
Variable | Default value | |
---|---|---|
port |
8080 |
TCP Port where the application will be listening for requests |
loglevel |
info |
Logging level, one of: silent, error, warn, info, debug, all |
interval |
0 0 * * * |
Cron interval for the bot to reset, everyday at 00:00 by default |
github_secret |
Secret that should be shared between the server and github for signing webhook events | |
consumer_key |
Twitter Application key | |
consumer_secret |
Twitter Application secret | |
access_token_key |
Twitter Application access token | |
access_token_secret |
Twitter Application access token secret |