/twitter-wikidatameter

A Twitter bot powered by Github Actions tweeting various Wikimedia milestones to some Twitter bots

Primary LanguagePHPMIT LicenseMIT

Twitter WikidataMeter Bot

I'm the code, and deployment of Twitter bot WikidataMeter. I tweet a few fun things about Wikidata as it grows.

Tweets

Feel free to suggest more tweets by creating an Github issue.

Everytime another 10,000,000 edits happens

Bot checks this data every 30 minutes, the value that is checked is live.

Everytime Item count crosses a 1,000,000 boundary

Bot checks this data every 30 minutes, the value that is checked is calculated once a day.

Everytime Property count crosses a 100 boundary

Bot checks this data every 30 minutes, the value that is checked is calculated once a day.

Everytime Lexeme count crosses a 10,000 boundary

Bot checks this data every 30 minutes, the value that is checked is calculated once a day.

Development

You'll need to install my dependencies using composer.

composer install

You can run a single localy only echo version using:

I_AM_BRING_TESTED=1 php run.php

This will not use the main persistent storage, and also it will not tweet!

And in order to fully integrate with the services you'll need to populate a .env file. Checkout .env.example for what is needed.

Then just run the main script.

php run.php

Deployment

I run on Github Actions on a cron using a docker container.

You can build the docker container using the following.

docker build . -t twitter-wikidatameter

Makes use of

Services:

Libraries: