From 5b8988743f60152ead05eece9372c08c1485e006 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 5 Aug 2018 20:21:40 +0000 Subject: [PATCH] Remove "+1 for " case --- plusone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plusone.py b/plusone.py index 828f5d0..6577ddf 100644 --- a/plusone.py +++ b/plusone.py @@ -43,7 +43,7 @@ class PointDB(yaboli.Database): PLUSONE_RE = r"(\+1|:\+1:|:bronze(!\?|\?!)?:)\s*(.*)" -MENTION_RE = r"((for|to)\s+|@)(\S+)" +MENTION_RE = r"((to)\s+@?|@)(\S+)" class PlusOne(yaboli.Bot): """ @@ -54,7 +54,7 @@ class PlusOne(yaboli.Bot): SHORT_HELP = "/me counts :+1:s" LONG_HELP = ( "Counts +1/:+1:/:bronze:s: Simply reply \"+1\" to someone's message to award them a point.\n" - "Alternatively, specify a person with: \"+1 [to|for] @person\"\n" + "Alternatively, specify a person with: \"+1 [to] @person\"\n" "\n" "!points - show your own points\n" "!points [ ...] - list other people's points\n"