|
|
|
@ -230,13 +230,16 @@ class TaxrefPlugin(Plugin):
|
|
|
|
|
+ "\n"
|
|
|
|
|
)
|
|
|
|
|
reply = shrlok.post({"type": "txt"}, text.encode())
|
|
|
|
|
if not reply:
|
|
|
|
|
self.bot.log_d("shrlok plugin returned an empty string.")
|
|
|
|
|
return
|
|
|
|
|
else:
|
|
|
|
|
reply = self.get_ambiguous_reply(items)
|
|
|
|
|
|
|
|
|
|
self.bot.say(target, reply)
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
def item_to_full_name(item):
|
|
|
|
|
def item_to_full_name(item: dict) -> str:
|
|
|
|
|
family_name = item.get("familyName")
|
|
|
|
|
sci_name = item.get("scientificName")
|
|
|
|
|
return f"{family_name} {sci_name}"
|
|
|
|
|