64f770f2 by Barry

Added some formatting

1 parent d47c384c
...@@ -582,11 +582,11 @@ Stuff: ...@@ -582,11 +582,11 @@ Stuff:
582 res = wolf.query(question) 582 res = wolf.query(question)
583 try: 583 try:
584 if len(res.pods): 584 if len(res.pods):
585 pod_text = "" 585 pod_text = []
586 for pod in res.pods: 586 for pod in res.pods:
587 if pod.text: 587 if pod.text:
588 pod_text += pod.text 588 pod_text.append(pod.text)
589 client.send_message(message.channel, '{} {}.'.format(message.author.mention(), byteify(pod_text[:1500]))) 589 client.send_message(message.channel, '{} {}.'.format(message.author.mention(), byteify("\n".join(pod_text)[:1990])))
590 else: 590 else:
591 tagged_sent = pos_tag(question.replace('?', '').split()) 591 tagged_sent = pos_tag(question.replace('?', '').split())
592 proper_nouns = [word for word, pos in tagged_sent if pos == 'NNP'] 592 proper_nouns = [word for word, pos in tagged_sent if pos == 'NNP']
......