A reddit bot that "crowdsources" acronym definitions from reddit
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."
- The bot reads comments and finds people typing in Camel Case. For instance "And Alec Baldwin" gets stored as "AAB"
- The bot stores their "definition" for an acronym in a database.
- Simultaneously, the bot reads comments for acronyms being used (series of capital letters)
- 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
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.
- Run
mix deps.get
- Create the mnesia database with
mix amnesia.create -db Database --disk
- Specify the subs you want it to run on, in
nameinator2.ex
- Create a
eprconfig.exs
file. Readconfig.exs
for more info, it's super easy. - Finally run
iex -S mix
to start it.