Package gozerbot :: Module plughelp
[hide private]
[frames] | no frames]

Source Code for Module gozerbot.plughelp

 1  # gozerbot/plughelp.py 
 2  # 
 3  # 
 4   
 5  """ help about plugins """ 
 6   
 7  __copyright__ = 'this file is in the public domain' 
 8   
9 -class Plughelp(dict):
10 11 """ dict holding plugins help string """ 12
13 - def add(self, item, descr):
14 """ add plugin help string """ 15 item = item.lower() 16 self[item] = descr
17
18 - def get(self, item):
19 """ get plugin help string """ 20 item = item.lower() 21 try: 22 return self[item] 23 except KeyError: 24 return None
25 26 plughelp = Plughelp() 27