Ignore dm's coming from streaming API as they are quite different. #215

This commit is contained in:
Manuel Cortez 2018-07-18 09:36:15 -05:00
parent e9cbe0d825
commit 41582a3770

View File

@ -84,6 +84,7 @@ class streamer(TwythonStreamer):
pub.sendMessage("mention", data=data["target_object"], user=self.get_user()) pub.sendMessage("mention", data=data["target_object"], user=self.get_user())
def process_dm(self, data): def process_dm(self, data):
return
if self.session.db["user_name"] != data["direct_message"]["sender"]["screen_name"]: if self.session.db["user_name"] != data["direct_message"]["sender"]["screen_name"]:
# d = self.put_data("sent_direct_messages", data["direct_message"]) # d = self.put_data("sent_direct_messages", data["direct_message"])
# if d != False: # if d != False: