!752

static S myName = "Spam Bot 2";
static int historySuck = 100;
static int room = 1;

static new TreeSet<S> lines;

p {
  suckWebChat_room = sayInWebChat_room = room;
  
  thread "Spam Bot 2" {
    while (licensed()) {
      pcall {
        for (ChatLine l : suckWebChat(myName, historySuck)) {
          lines.add(l.text);
        }
        sayInWebChat(myName, makeRandomLine());
      }
      sleepSeconds(10);
    }
  }
}

static S makeRandomLine() {
  ret oneOf(asList(lines));
}