def bot_data_in(session, *args, **kwargs):
 text = (args[0] if args else None)
 if (text is None):
  return
 if (text.strip() in _IDLE_COMMAND):
  session.update_session_counters(idle=True)
  return
 kwargs.pop('options', None)
 session.player.execute_cmd(text=text, session=session)
 session.update_session_counters()

def bot_data_in ( session , * args , ** kwargs ) : text = ( args [ 0 ] if args else None ) if ( text is None ) : return if ( text . strip ( ) in _IDLE_COMMAND ) : session . update_session_counters ( idle = True ) return kwargs . pop ( 'options' , None ) session . player . execute_cmd ( text = text , session = session ) session . update_session_counters ( )
text input from the irc and rss bots .