Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def checkPoll():
- poll_info = vkUser.method("polls.getById",{
- "poll_id":poll_id
- })
- pollVotes = poll_info["answers"][0]["votes"]
- if pollVotes > 5:
- vk.method("messages.removeChatUser",
- {
- "chat_id":id,
- "member_id": uID
- })
- else:
- voteDenied = "Голосование за кик " +str(UserName)+ " не удаллсь"
- vk.method("messages.send",
- {
- "peer_id": id,
- "random_id": random.randint(1, 2147483647),
- "message": voteDenied
- })
- timer = threading.Timer(5.0,checkPoll)
- timer.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement