Compare commits
No commits in common. "0e43995dfbbb973fc127eecc49b9fb62c8c3c241" and "f1169f3629a8b95267ceb10d68509ff4d811f3a4" have entirely different histories.
0e43995dfb
...
f1169f3629
@ -35,10 +35,6 @@ def get_answers():
|
||||
return client.get_config('answers')
|
||||
|
||||
|
||||
def get_ignored_users():
|
||||
return client.get_config('ignored_users')['users']
|
||||
|
||||
|
||||
def get_replies():
|
||||
return client.get_config('replies')
|
||||
|
||||
@ -155,6 +151,6 @@ class Daemon(base.Daemon, queues.TasksHandlerMixin):
|
||||
else:
|
||||
return
|
||||
ans = get_answers().get(convert_text)
|
||||
if ans is not None and randrange(1, 101) <= info["probability"] and message.from_user.id not in get_ignored_users():
|
||||
if ans is not None and randrange(1, 101) <= info["probability"]:
|
||||
self.reply(ans, message.chat.id, message.message_id)
|
||||
mongo.inc(message.from_user.username, message.chat.id)
|
||||
|
Loading…
Reference in New Issue
Block a user