Exemplo n.º 1
0
	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")
Exemplo n.º 2
0
	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")
Exemplo n.º 3
0
	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")
Exemplo n.º 4
0
	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")