!752 !include #1002900 // Web Chat API - chat.tinybrain.de static L botIDs = splitWords("#1002907 #1002919"); static new L bots; p { for (S botID : botIDs) pcall { bots.add(hotwireDependent(botID)); } print("Loaded " + l(bots) + "/" + l(botIDs) + " web bots"); for (O bot : bots) { set(bot, "externalSucker", mc()); callMain(bot); } } static L getNewMessages(long lastID) { suckChat(); L l = msgsFrom(lastID); if (nempty(l)) print("Distributing " + n(l(l), "new message")); ret l; }