Quick renamer that I put together to count down for cons such as BronyCAN. Yay.
I run it in my Raspberry Pi.
sudo apt-get install python3 python3-pip git git clone https://github.com/ekevoo/twitter-name-countdown.git cd twitter-name-countdown sudo pip3 install -r requirements.txt
- Copy
local_settings_example.py
to a new file calledlocal_settings.py
- Go to Twitter Apps and create a new app called Name Countdown.
- In Application Settings click manage keys and access tokens.
- Copy API Key and API Secret over to your local settings file.
- Scroll down to generate a new access token.
- Copy Token and Token Secret over to your local settings file.
- Set the target date, using ISO format (YYYY-MM-DD).
- Choose the names you wish to have before, during, and after target date.
Test it once by running: ./renamer.py
If it's good, run the following command to schedule it to run every midnight:
(crontab -l 2>/dev/null; echo "0 0 * * * /usr/bin/python3 /home/pi/twitter-name-countdown/renamer.py") | crontab -
Aaand done!