From 22ce0245555ecf830322c509ac2dcdbc5d140298 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 18 May 2016 09:43:43 -0400 Subject: [PATCH] Add hearts plugin --- plugins/hearts.py | 123 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 plugins/hearts.py diff --git a/plugins/hearts.py b/plugins/hearts.py new file mode 100644 index 0000000..ca93e67 --- /dev/null +++ b/plugins/hearts.py @@ -0,0 +1,123 @@ +# hearts.py +# Keepin' score is better with <3. +# Eryn Wells + +import json +import os.path +import re + +HEARTS_FILE = 'hearts.json' + +PLUSES = {'prefix': ['++', '<3', ':heart:', '❤️'], + 'suffix': ['++']} +MINUSES = {'prefix': ['--', '–', '—', '