AutoDetweeter automatically deletes tweets after a set period of time.
You will need to sign up for a Twitter Dev account and create an app. After creating the app, you will need to generate keys for the app in order to use AutoDetweeter.
Use process env variables to set the following values:
process.env.CONSUMER_KEY
process.env.CONSUMER_SECRET
process.env.ACCESS_TOKEN_KEY
process.env.ACCESS_TOKEN_SECRET
process.env.SCREEN_NAME
process.env.TWITTER_DATE_FORMAT
process.env.DELETE_AFTER
process.env.TIME_UNIT
Learn more about using process vars check out Heroku's article.
process.env.TIME_UNIT
and process.env.DELETE_AFTER
are parsed by the moment.js library. Learn more about valid formats here..
process.env.TIME_UNIT
is a stringprocess.env.DELETE_AFTER
is an integer represented as a string.
ex: 60days would have TIME_UNIT
of 'd'
and DELETE_AFTER
would be '60'
Currently: ddd MMM DD hh:mm:ss ZZ YYYY
Not sure if that will change, but didn't want to push the code again if it does.
Best to deploy on Heroku with a scheduler.
AutoDetweeter is Public Domain