@LOL_YELLING

PROJECT Twitter bot
ROLE 
Concept & Development
TOOLS Node.js, Twitter API, Heroku
YEAR 2017

ABOUT
Twitter users often insert the clap emoji between words to ๐Ÿ‘emphasize๐Ÿ‘what๐Ÿ‘they're๐Ÿ‘saying.๐Ÿ‘ 

@lol_yelling is a bot that finds and retweets those tweets.

BuzzFeed News explains why I made it, and why it could never last. 

BUILD
Twitter doesn't support search for emojis. To build this, I used the Emoji Data node package and a regular expression on top of the Twit node.js package and Twitter Stream API. 

The Emoji Data node.js package searches Twitter in real-time for tweets containing ๐Ÿ‘. This feed is run through a regular expression to keep only tweets that contain "๐Ÿ‘ (text)๐Ÿ‘ (text)๐Ÿ‘"

Hereโ€™s the regular expression:

/(๐Ÿ‘)[(\w)(\d)?]+(\s)?๐Ÿ‘[(\w)(\d)?]+(\s)?(๐Ÿ‘)/g

Neil Cline helped me organize the qualifying tweets into a database, which the program checks against to avoid double-retweets. The whole thing runs on Heroku.