Skip to content

Commit

Permalink
modify judge method
Browse files Browse the repository at this point in the history
  • Loading branch information
KIDJourney committed Mar 22, 2016
1 parent acc23c5 commit 56d093e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/judgemethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def txNlpTextJudge(post):

return response['negative'] > 0.75


@post_method
@judge_method_logger
def patternCheck(post):
"""
Expand All @@ -73,7 +73,7 @@ def patternCheck(post):
:return boolean:
"""
title = post.get_title()
start_chr = ['R', 'r', '【']
start_chr = ['R', 'r', '【','[']
return title[0] not in start_chr


Expand All @@ -99,11 +99,10 @@ def replyTestJudge(reply):
return reply_content[0] == 'H'


@reply_method
@judge_method_logger
def keyWordDected(reply):
return "套现" in reply.get_content()


if __name__ == "__main__":
title = '求送'
pass

0 comments on commit 56d093e

Please sign in to comment.