Removed some unneeded code

This commit is contained in:
Manuel Cortez 2018-12-09 07:28:13 -06:00
parent feb3215745
commit 7ba24f7a54
2 changed files with 1 additions and 4 deletions

View File

@ -13,9 +13,7 @@ class worker(threading.Thread):
self.longpoll = VkLongPoll(self.session.vk.session_object)
def run(self):
print("starting events")
for event in self.longpoll.listen():
print(event)
if event.type == VkEventType.MESSAGE_NEW:
pub.sendMessage("order-sent-message", obj=event)
elif event.type == VkEventType.USER_ONLINE:

View File

@ -371,8 +371,7 @@ class Controller(object):
def get_chat(self, obj=None):
""" Searches or creates a chat buffer with the id of the user that is sending or receiving a message.
obj mysc.longpoll.event: an event wich defines some data from the vk's long poll server."""
print obj
obj vk_api.longpoll.EventType: an event wich defines some data from the vk's long poll server."""
if obj.to_me:
buffer = self.search_chat_buffer(obj.user_id)
uid = obj.user_id