code: def main(bot):
      
      greenlet = spawn(bot.run)
      try:
          greenlet.join()
      except KeyboardInterrupt:
          print ''  # cosmetics matters
          log.info("Killed by user, disconnecting...")
          bot.disconnect()
      finally:
          greenlet.kill()
docs: Entry point for the command line launcher.
  
      :param bot: the IRC bot to run
      :type bot: :class:`fatbotslim.irc.bot.IRC`