Twitter doesn't let you make your avatar a GIF.
But that doesn't mean your avatar can't be "animated"!
With gifatar, you can have your avatar update like a GIF over an extended period of time. When you look at your profile, you see a different frame each time, much like seeing the hands of a clock be in a different position when you glance up after a few hours β a slow web experience.
- Make sure you have
nodeandnpminstalled. - Clone or fork this repo.
git clone https://github.com/billdybas/gifatar.git - Make a
.envfile.cp .env-sample .env - Place the GIF you'd like to use in
images/. - Create a new Twitter app at https://apps.twitter.com/. Twitter will generate a Consumer Key and Consumer Secret. Make sure to also generate an Access Token and Access Token Secret at
https://apps.twitter.com/app/<app_id>/keys. Put these in your.env. - Fill in the other appropriate environment variables:
IMAGE_PATH: (string, required) Path of the GIF to use relative to theimages/directoryTWITTER_TIMEOUT: (number, optional, default: 1 minute) HTTP request timeout to TwitterIMAGE_UPDATE_INTERVAL: (number, optional, default: 60 minutes) How often to update the profile imageVERBOSE: (boolean, optional, default: false) Whether to run in verbose mode
npm installnpm start
If you need a quick and easy way to deploy this bot, check out now.
- Twitter's Rules & Best Practices
- Twitter's Automation Rules
- Twitter's API Docs
POST account/update_profile_imageDocs- Twitter's Rate Limiting
- How to Make a Twitter Bot
- Bot Hosting
See LICENSE.md
Built during Brickhack 4 by Bill Dybas.