@commands(u'comment')
def take_comment(bot, trigger):
 if (not trigger.sender.is_nick()):
  return
 if (not trigger.group(4)):
  bot.say(u'Usage: .comment <#channel> <comment to add>')
  return
 (target, message) = trigger.group(2).split(None, 1)
 target = Identifier(target)
 if (not ismeetingrunning(target)):
  bot.say(u"There's not currently a meeting in that channel.")
 else:
  meetings_dict[trigger.group(3)][u'comments'].append((trigger.nick, message))
  bot.say(u'Your comment has been recorded. It will be shown when the chairs tell me to show the comments.')
  bot.msg(meetings_dict[trigger.group(3)][u'head'], u'A new comment has been recorded.')

@ commands ( u'comment' ) def take_comment ( bot , trigger ) : if ( not trigger . sender . is_nick ( ) ) : return if ( not trigger . group ( 4 ) ) : bot . say ( u'Usage: .comment <#channel> <comment to add>' ) return ( target , message ) = trigger . group ( 2 ) . split ( None , 1 ) target = Identifier ( target ) if ( not ismeetingrunning ( target ) ) : bot . say ( u"There's not currently a meeting in that channel." ) else : meetings_dict [ trigger . group ( 3 ) ] [ u'comments' ] . append ( ( trigger . nick , message ) ) bot . say ( u'Your comment has been recorded. It will be shown when the chairs tell me to show the comments.' ) bot . msg ( meetings_dict [ trigger . group ( 3 ) ] [ u'head' ] , u'A new comment has been recorded.' )
log a comment .