def doc(phenny, input):
 name = input.group(1)
 name = name.lower()
 if phenny.doc.has_key(name):
  phenny.reply(phenny.doc[name][0])
  if phenny.doc[name][1]:
   phenny.say(('e.g. ' + phenny.doc[name][1]))

def doc ( phenny , input ) : name = input . group ( 1 ) name = name . lower ( ) if phenny . doc . has_key ( name ) : phenny . reply ( phenny . doc [ name ] [ 0 ] ) if phenny . doc [ name ] [ 1 ] : phenny . say ( ( 'e.g. ' + phenny . doc [ name ] [ 1 ] ) )
shows a commands documentation .