Skip to content

A Twitter bot used to spread some wholesomeness among your followers.

Notifications You must be signed in to change notification settings

lvictorino/tweetsome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wholesome Twitter Bot

A simple Twitter bot written in Python that will randomely pick a follower of yours to send them wholesome words in order to brighten their day.

How it works

The Wholesome Twitter Bot connects to Twitter API using your app credentials (defined in config.py). It then gathers the list of your followers and cache it in a local FOLLOWER_CACHE file. One follower is then randomly picked from that list. From the WHOLESOME_CONTENT a random line is extracted. A tweet is then built combining the Twitter screen name of the randomly picked follower and the random line selected. The WHOLESOME_HASHTAG hashtags are then added at the end of the tweet. Finally, the tweet is sent as a reply to the last tweet sent by the Wholesome Twitter bot, or to the tweet defined by DEFAULT_ROOT_ID tweet ID if it’s the first time the bot is used.

Pre requisites

Configuration

Simply update the configuration file config.py with the relevant content.

keycontent
TWITAPI_CONSUMER_KEYTwitter consumer key of your App
TWITAPI_CONSUMER_SECRETTwitter consumer secret of your App
TWITAPI_TOKEN_KEYTwitter token key of your App
TWITAPI_TOKEN_SECRETTwitter token secret of your App
TWITTER_IDYour Twitter ID
DEFAULT_ROOT_IDID of the first tweet of the wholesome thread
WHOLESOME_HASHTAGHashtag that will be automatically added to tweets
FOLLOWER_CACHELocal file path where your follower list will be cached
SAVE_FILELocal file path where the history of tweet will be saved
WHOLESOME_CONTENTPath of the local file that contains the wholesome content of the tweets

FAQ

  • How to add / modify the content of the tweets?
    • Simple modify the content of wholesome-content.txt text file with your own wholesome content.
  • Why is there no exclusion file?
    • Excluding some of your followers from the possibility to receive wholesome content is not fair. Even your greedy bank deserves to have a nice day.
  • What if I use the Wholesome Twitter Bot to send a bunch of insults to someone else’s followers?
    • Well, brother, it won’t be good for your karma and I’m sorry for you. Really. Also I can’t be held responsible for what others do with this bot.

About

A Twitter bot used to spread some wholesomeness among your followers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages