@commands(u'chairs')
@example(u'.chairs Tyrope Jason elad')
def chairs(bot, trigger):
 if (not ismeetingrunning(trigger.sender)):
  bot.say(u"Can't do that, start meeting first")
  return
 if (not trigger.group(2)):
  bot.say(u'Who are the chairs?')
  return
 if (trigger.nick.lower() == meetings_dict[trigger.sender][u'head']):
  meetings_dict[trigger.sender][u'chairs'] = trigger.group(2).lower().split(u' ')
  chairs_readable = trigger.group(2).lower().replace(u' ', u', ')
  logplain((u'Meeting chairs are: ' + chairs_readable), trigger.sender)
  logHTML_listitem((u'<span style="font-weight: bold">Meeting chairs are: </span>' + chairs_readable), trigger.sender)
  bot.say((u'\x02Meeting chairs are:\x0f ' + chairs_readable))
 else:
  bot.say(u'Only meeting head can set chairs')

@ commands ( u'chairs' ) @ example ( u'.chairs Tyrope Jason elad' ) def chairs ( bot , trigger ) : if ( not ismeetingrunning ( trigger . sender ) ) : bot . say ( u"Can't do that, start meeting first" ) return if ( not trigger . group ( 2 ) ) : bot . say ( u'Who are the chairs?' ) return if ( trigger . nick . lower ( ) == meetings_dict [ trigger . sender ] [ u'head' ] ) : meetings_dict [ trigger . sender ] [ u'chairs' ] = trigger . group ( 2 ) . lower ( ) . split ( u' ' ) chairs_readable = trigger . group ( 2 ) . lower ( ) . replace ( u' ' , u', ' ) logplain ( ( u'Meeting chairs are: ' + chairs_readable ) , trigger . sender ) logHTML_listitem ( ( u'<span style="font-weight: bold">Meeting chairs are: </span>' + chairs_readable ) , trigger . sender ) bot . say ( ( u'\x02Meeting chairs are:\x0f ' + chairs_readable ) ) else : bot . say ( u'Only meeting head can set chairs' )
set the meeting chairs .