DDG module: add examples on !ud commands

This commit is contained in:
nemunaire 2014-04-22 17:23:03 +02:00
parent 08f3a31e88
commit d38ebd372c

View File

@ -22,6 +22,6 @@ class UrbanDictionnary:
def definitions(self):
if self.udres and "list" in self.udres:
for d in self.udres["list"]:
yield d["definition"]
yield d["definition"] + "\n" + d["example"]
else:
yield "Sorry, no definition found for %s" % self.terms