|
|
|
@ -25,9 +25,11 @@ class WikipediaPlugin(Plugin):
|
|
|
|
|
def on_pubmsg(self, event):
|
|
|
|
|
if not self.should_handle_command(event.arguments[0]):
|
|
|
|
|
return False
|
|
|
|
|
if self.command.ident == "science":
|
|
|
|
|
# "science"
|
|
|
|
|
if self.command.ident == self.config["commands"][0]:
|
|
|
|
|
self.tell_random_summary(event)
|
|
|
|
|
elif self.command.ident == "define":
|
|
|
|
|
# "definition"
|
|
|
|
|
elif self.command.ident == self.config["commands"][1]:
|
|
|
|
|
self.tell_definition(event)
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|