Skip to content

Commit

Permalink
アルゴリズムの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed Nov 14, 2009
1 parent 20cce48 commit 2ca816a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/zen-ra/bot/twitter.py
Expand Up @@ -202,7 +202,7 @@ def judge(status):
if re.search('RT[ :].*@\w+', status['text']):
return False
# ハッシュタグっぽいものを含んでいる発言も除く
if re.search(' #\w+', status['text']):
if re.search('#\w+', status['text']):
return False
# 既に「全裸で」が含まれている発言も除く
if re.search(u'全裸で', status['text']):
Expand All @@ -224,3 +224,6 @@ def judge(status):
text,
), in_reply_to = status['id'])
break
# 400が返ってきたときは10分間黙るようにしてみる
elif result.status_code == 400:
memcache.set(ZENRIZE_COUNT, 10)

0 comments on commit 2ca816a

Please sign in to comment.