DDG module: add examples on !ud commands
This commit is contained in:
parent
08f3a31e88
commit
d38ebd372c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user