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):
|
def definitions(self):
|
||||||
if self.udres and "list" in self.udres:
|
if self.udres and "list" in self.udres:
|
||||||
for d in self.udres["list"]:
|
for d in self.udres["list"]:
|
||||||
yield d["definition"]
|
yield d["definition"] + "\n" + d["example"]
|
||||||
else:
|
else:
|
||||||
yield "Sorry, no definition found for %s" % self.terms
|
yield "Sorry, no definition found for %s" % self.terms
|
||||||
|
Loading…
x
Reference in New Issue
Block a user