Move command dispatcher as a standalone filter

This commit is contained in:
Richard Chien
2016-12-26 14:19:12 +08:00
parent 2010849fee
commit 4091a43121
3 changed files with 97 additions and 88 deletions

View File

@ -7,7 +7,7 @@ from little_shit import get_target
from commands import core
_freq_count = TTLDict(maxsize=10000, ttl=2 * 60 * 60)
_max_message_count_per_hour = 150
_max_message_count_per_hour = 120
def _limiter(ctx_msg):