help about plugins.
Bases: dict
dict holding plugins help string.
add plugin help string.
get plugin help string.
# gozerbot/plughelp.py # # """ help about plugins. """ __status__ = "ok"
class PlugHelp(dict): """ dict holding plugins help string. """ def add(self, item, descr): """ add plugin help string. """ item = item.lower() self[item] = descr def get(self, item): """ get plugin help string. """ item = item.lower() try: return self[item] except KeyError: return None # # defines plughelp = PlugHelp()