Skip to content

A reddit bot that "crowdsources" acronym definitions from reddit

Notifications You must be signed in to change notification settings

SuperDisk/SupercoolNameinator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SupercoolNameinator

A reddit bot that "crowdsources" acronym definitions from reddit

The Supercool Nameinator

is a bot that I (/u/superdisk) wrote as a way to learn Elixir/OTP. It's named after the Kids Next Door's "LUNCHBOCKS," which has a "Supercool Nameinator" program that generates phony acronyms-- for instance "BRA" -> "Battle Ready Armor."

How it works:

  1. The bot reads comments and finds people typing in Camel Case. For instance "And Alec Baldwin" gets stored as "AAB"
  2. The bot stores their "definition" for an acronym in a database.
  3. Simultaneously, the bot reads comments for acronyms being used (series of capital letters)
  4. If it finds one that's in the database, it comments the "definition" and reference comment from where it came.

That's it. My operation of the bot lasted 2 days, until it was banned by AskReddit and had all its comments deleted. Here is the (heavily downvoted) fruits of its labor

Technical

The bot itself is written in Elixir, basically as a learning exercise- Huge thanks go out to Meh, Rob-Bie (for Amnesia and ElixirPlusReddit respectively) and the folks in the Elixir slack.

How to make it run

  1. Run mix deps.get
  2. Create the mnesia database with mix amnesia.create -db Database --disk
  3. Specify the subs you want it to run on, in nameinator2.ex
  4. Create a eprconfig.exs file. Read config.exs for more info, it's super easy.
  5. Finally run iex -S mix to start it.

About

A reddit bot that "crowdsources" acronym definitions from reddit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages