Robin, Per IRC chat. Plus follow up.. It would be nice if the bot provided the functionality of !cmdname [key] <atom> For example !foo LICENSE app-arch/lzma-utils would find the stable atom of app-arch/lzma-utils-4.32.7 (as of today on arch) which would be "LGPL-2.1" and return it via irc. The [key] would be user provided. The <pkg> would also be be user provided. Many sub alias cmds could be provided by a top level function. In this example !license <pkg> could be offered, and or extra options for !meta -[opts] <atom> The existing metadata.py or old earch.py could probably be hacked for this use. No rush..
TODO: build a JSON-powered web service for this first, it needs to be cached.
too much evaluation hassle without the service that provides this data. Profiles and use flags can also impact the outcome of some lookups.