Leslie Knope Compliment Generator

Leslie Knope Compliment Generator

Programming

I'm a pretty big fan of NBC's Parks and Recreation and its lead character Leslie Knope. I'm an even bigger fan of her compliments, always positive, over the top, and involving some sort of animal. With this in mind, I built the Leslie Knope Compliment Generator.

Project Completed: June, 2018

Approximate Time: 2 days

Lines of Code: 100

Created With:

About the Project

Armed with a list of animals, and a list of adjectives I curated to be positive, I built a simple API where anyone can pass in the name of a friend or colleague, and receive a Knope-style compliment back.

 

Example Compliments

Here are a few compliments you get when you pass in the name “Ann”.

  • Ann, you faithful hippopotamus.
  • Ann, you energized worm.
  • Ann, you self-disciplined boar.
  • Ann, you knowledgeable crocodile.
  • Ann, you pioneering lark.

The package also has the capability for multiple adjectives (anywhere from 1 to 5, and the option for a random number). In addition, there are also options for official compliments said by Leslie Knope herself, and one for alliteration.

 

 

 

Uses & Integrations

Since I created the package, I’ve used it in a few projects. A WordPress plugin called “Hello Leslie” allows you to provide compliments to users of your WordPress installation. The plugin is almost identical to the “Hello Dolly” plugin found on all new WordPress installations by default, but replaces lyrics with compliments.

Another project was connecting it to my personal Facebook Messenger. Every day a select few of my friends get personalized compliments sent to them automatically. Here are a few example chat logs.

Me
Beccy, you reliable spoonbill.
Beccy
Lordy that’s a good one

 

Me
Melissa, you easygoing elk.
Melissa
Daily animal is a godsend

 

Since most people who would enjoy these compliments have no clue how to code or what NPM is, I decided to integrate the service into a google assistant action, and a slack integration as well. Simply ask your device to talk to “Leslie Knope Compliments” and get your own personalized compliment.

 

Happy coding, you faithful hippopotamuses.