The story of u/AnEmojipastaBot

u/AnEmojipastaBot was a Reddit bot inspired by r/emojipasta. The idea was simple: turn the comments of other users into emojipasta, on request.

For example...

u/JohnDoe1: it's getting hot in here

u/JohnDoe2: u/anemojipastabot

u/AnEmojipastaBot: it's getting hot ๐Ÿ”ฅ๐Ÿ˜ in ๐Ÿ”ฝ๐Ÿ‘ here ๐Ÿ’ช๐Ÿ‘

The bot was a surprise hit, spreading across the entire website and acquiring 30k upvotes (or "karma") in a handful of days. Reddit users and other bots broke it quickly in a number of surprising and amusing ways:

These bugs were squashed, however, and everything began to run smoothly. Here are the most-upvoted comments of the bot from those carefree days.

Eventually, the bot made enemies with too many important people and its account was banned permanently. For being spammy and annoying, apparently. Nobody could have seen it coming.

It was fun while it lasted, however, and rather than let the code go to waste, I recently resurrected it as a web app.

For the interested, here's a brief description of how it worked (and how it still works in the web app). I wrote a script to download a few thousand comments off r/emojipasta, keeping track of which words appeared beside which emojis. The bot broke up comments into chunks of text and emojis were inserted randomly between the chunks using the word->emoji "mappings" from r/emojipasta, with a maximum of 2 emojis after each chunk. Only the alphanumeric prefix of each chunk of text was considered, so that "I'll" would give the same emoji mappings as "I".

That's about it. The code was pretty simple. The original source code of the bot, in Python, can be found HERE. The JavaScript version that I ported recently can be found HERE.

And so ends ๐Ÿ”š the story ๐Ÿ“– of AnEmojipastaBot ๐Ÿค–


Post Date: 2019-09-29

Back to blog

Previous article: Simulating plane designs for faster boarding

Next article: Solving all 42 versions of the Harry Potter potions puzzle