new post fix
This commit is contained in:
parent
3ef5a9b459
commit
8b9ab0efce
|
@ -783,7 +783,7 @@ def bots():
|
||||||
log(False, f"[NEW_POST] id{event.object.id}")
|
log(False, f"[NEW_POST] id{event.object.id}")
|
||||||
users = db.get_all_users()
|
users = db.get_all_users()
|
||||||
for i in users:
|
for i in users:
|
||||||
bot[int(i)].event("post", event.object)
|
bot[int(i['chat_id'])].event("post", event.object)
|
||||||
elif event.type == VkBotEventType.MESSAGE_DENY:
|
elif event.type == VkBotEventType.MESSAGE_DENY:
|
||||||
log(False, f"User {event.object.user_id} deny messages from that group")
|
log(False, f"User {event.object.user_id} deny messages from that group")
|
||||||
del bot[int(event.object.user_id)]
|
del bot[int(event.object.user_id)]
|
||||||
|
|
Loading…
Reference in New Issue