浏览代码

fix: up/down vote recognition (#215)

Mahbod 3 年之前
父节点
当前提交
3ba63e76ec
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      wbb/modules/karma.py

+ 2 - 2
wbb/modules/karma.py

@@ -49,8 +49,8 @@ __HELP__ = """[UPVOTE] - Use upvote keywords like "+", "+1", "thanks", etc to up
 Reply to a message with /karma to check a user's karma
 Send /karma without replying to any message to check karma list of top 10 users"""
 
-regex_upvote = r"^(\+|\+\+|\+1|thx|tnx|tq|ty|thankyou|thank you|thanx|thanks|pro|cool|good|agree|👍|\+\+ .+)$"
-regex_downvote = r"^(-|--|-1|not cool|disagree|worst|bad|👎|-- .+)$"
+regex_upvote = r"^(\++|\+1|thx|tnx|tq|ty|thankyou|thank you|thanx|thanks|pro|cool|good|agree|👍|\++ .+)$"
+regex_downvote = r"^(-+|-1|not cool|disagree|worst|bad|👎|-+ .+)$"
 
 
 @app.on_message(