def on_description_post(self, data): print ("on description post") print ("NEW POST: ", data) comment = Comment(0, data["text"], data["charId"]) comment.save() self.broadcast_event("updateComments")
def on_dialogue_post(self, data): print ("on dialogue post") print ("NEW POST: ", data) comment = Comment(1, data["text"], data["charId"]) # and icon comment.save() self.broadcast_event("updateComments")